From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31994 invoked by alias); 23 Jun 2003 18:35:30 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18356 invoked from network); 23 Jun 2003 18:28:37 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 23 Jun 2003 18:28:37 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19UW3l-0004p8-00; Mon, 23 Jun 2003 13:28:57 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19UW2q-0001PT-00; Mon, 23 Jun 2003 14:28:00 -0400 Date: Mon, 23 Jun 2003 18:35:00 -0000 From: Daniel Jacobowitz To: ramana@codito.com Cc: gdb@sources.redhat.com Subject: Re: Problem with multiple threads using gdbserver on x86. Message-ID: <20030623182800.GA5329@nevyn.them.org> Mail-Followup-To: ramana@codito.com, gdb@sources.redhat.com References: <20030623124618.GA24330@nevyn.them.org> <1056373839.13118.2.camel@numenor.codito.co.in> <20030623131606.GA25130@nevyn.them.org> <20030623132811.GA30502@nevyn.them.org> <1056380381.13489.30.camel@numenor.codito.co.in> <20030623145919.GA17274@nevyn.them.org> <1056385560.13489.51.camel@numenor.codito.co.in> <20030623162335.GA20652@nevyn.them.org> <1056386110.13489.57.camel@numenor.codito.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1056386110.13489.57.camel@numenor.codito.co.in> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00455.txt.bz2 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