This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: qSymbol


Hello Sir, the following is the function definition,

static void
linux_look_up_symbols (void)
{
#ifdef USE_THREAD_DB
  if (using_threads)
    return;

  using_threads = thread_db_init ();
#endif
}

assume that I am interested in only process debugging, but not thread
debugging,
so I am not defining USE_THREAD_DB macro.

I am getting confuse... why target sending symbols to host (gdb ) ?

If I compile the application at host side as re-locatable and relink it at
target side, the sybols are there at host side only.
the corresponding values at target side. This is what I thought.. what will
be solution in this case ?
can you carrify me more in details ?

Regards
Raja S


-----Original Message-----
From: gdb-owner@sources.redhat.com [mailto:gdb-owner@sources.redhat.com]On
Behalf Of Daniel Jacobowitz
Sent: Monday, June 16, 2003 9:50 PM
To: saleru raja
Cc: gdb@sources.redhat.com
Subject: Re: qSymbol


On Sun, Jun 15, 2003 at 11:16:24PM -0500, saleru raja wrote:
> Yes, I got it in manual. Thanks for the same.
> In GDB Server, I think currently return only "OK".
>
> Does any implementation of qSymbol in GDB Server to send the values of
sybols to host side gdb ?
> If not, how we can implement the same ? any example or algorithmic way of
representing what needs to be implement ?

Other way around, friend.  Values of symbols are sent _to_ gdbserver.

See linux_look_up_symbols.

--
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]