Problem with multiple threads using gdbserver on x86.

Daniel Jacobowitz drow@mvista.com
Mon Jun 23 18:35:00 GMT 2003


On Mon, Jun 23, 2003 at 10:05:10PM +0530, Ramana Radhakrishnan wrote:
> hi daniel,
> 
> > Gdbserver needs to know the location of the symbols.  The way it does
> > this is by querying GDB on the host side for the addresses.
> 
> but the only piece of code within the target specific function seems to
> be getting information regarding threads .maybe i am a bit dense but
> this really doesnt look like querying symbol specific information from
> gdb. 
> 
> The following snippet is the code from 
> 
> linux_look_up_symbols()
> {
> #ifdef USE_THREAD_DB
>   if (using_threads)
>     return;
> 
>   using_threads = thread_db_init ();
> #endif
> }

Look at thread_db_init and the code in libthread_db in the glibc
source.  Then look at ps_pglobal_lookup in proc-service.c.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list