From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19358 invoked by alias); 10 Jun 2003 02:05:10 -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 19308 invoked from network); 10 Jun 2003 02:05:07 -0000 Received: from unknown (HELO smtp8.access.co.jp) (157.78.36.253) by sources.redhat.com with SMTP; 10 Jun 2003 02:05:07 -0000 Received: (qmail 26781 invoked from network); 10 Jun 2003 11:05:04 +0900 Received: from unknown (HELO smtp5.access.co.jp) (157.78.36.243) by 0 with SMTP; 10 Jun 2003 11:05:04 +0900 Received: (qmail 16262 invoked by alias); 10 Jun 2003 11:05:04 +0900 Received: (qmail 16238 invoked from network); 10 Jun 2003 11:05:04 +0900 Received: from unknown (HELO ADMIN) (157.78.69.163) by 0 with SMTP; 10 Jun 2003 11:05:04 +0900 From: "Raja Saleru" To: "Daniel Jacobowitz" , "Gdb Redhat" Subject: Re: remote debugging threads Date: Tue, 10 Jun 2003 02:05:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-06/txt/msg00142.txt.bz2 Dear Sir, Thank you very much. I will look in depth and raise the question if I get. If theread support is disabled, then also gdb server side does the symbolic address finding ? I think not, am I right ? please clarify me. How can I get all the gdb mailing list into my inbox ? like rtems. Regards Raja Saleru On Mon, Jun 09, 2003 at 06:55:14PM +0900, Raja Saleru wrote: > > Hi > > In gdbserver source file Linux_low.c look at the following data structure > > static struct target_ops linux_target_ops = { > linux_create_inferior, > linux_attach, > linux_kill, > linux_thread_alive, > linux_resume, > linux_wait, > linux_fetch_registers, > linux_store_registers, > linux_read_memory, > linux_write_memory, > linux_look_up_symbols, > }; > > the last member linux_look_up_symbols, what this function does ? > > This is assigned to the following function > > linux_look_up_symbols (void) > { > #ifdef USE_THREAD_DB > if (using_threads) > return; > > using_threads = thread_db_init (); > #endif > } > > Actually where it does any symbol related functionality ? > > can anybody clarrify these questions ? Thanks in advance If you look at the linuxthreads_db/ directory in glibc source, you'll see the trick - thread_db_init calls back into the application. Take a look at gdbserver/proc-service.c, function ps_pglobal_lookup. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer .