From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17098 invoked by alias); 18 Nov 2005 15:28:51 -0000 Received: (qmail 17066 invoked by uid 22791); 18 Nov 2005 15:28:50 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Nov 2005 15:28:50 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ed8AS-0002Xc-23; Fri, 18 Nov 2005 10:28:48 -0500 Date: Fri, 18 Nov 2005 15:28:00 -0000 From: Daniel Jacobowitz To: Teresa Rivas Cc: gdb@sources.redhat.com Subject: Re: gdb debugging threads help Message-ID: <20051118152848.GC9100@nevyn.them.org> Mail-Followup-To: Teresa Rivas , gdb@sources.redhat.com References: <1132274170.32154.20.camel@localhost.localdomain> <20051118023628.GA31581@nevyn.them.org> <1132324238.32154.30.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1132324238.32154.30.camel@localhost.localdomain> User-Agent: Mutt/1.5.8i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00390.txt.bz2 On Fri, Nov 18, 2005 at 08:30:37AM -0600, Teresa Rivas wrote: > Which command can I use to see if it is linked against the correct > thread_db library?? I use a nm -D gdbserver but all I see are the > symbols from the dynamic libraries not the libraries. "ldd" on your target. > ..... > 0000eeec T target_signal_to_name > 0000ee90 T target_signal_to_string > U tcgetattr > U tcsetattr > U tcsetpgrp > U td_symbol_list > U td_ta_event_addr > U td_ta_event_getmsg > U td_ta_new > U td_ta_set_event > U td_ta_thr_iter > U td_thr_event_enable > U td_thr_get_info > 0001f42c D the_low_target > 00020784 B the_target > 00014664 T thread_db_init > 00020690 B thread_from_wait Looks good. > (gdb) set solib-absolute-prefix /lib > (gdb) file simple No, /target/arm-linux. The _full path_ to libraries will be appended to this prefix: > > > (gdb) set solib-absolute-prefix /target/arm-linux/lib > > > > That's probably not right. The paths below solib-absolute-prefix > > should match the target filesystem. So if solib-absolute-prefix > > is "/target/arm-linux", then the target /lib/ld-linux.so.2 should be in > > /target/arm-linux/lib/ld-linux.so.2. -- Daniel Jacobowitz CodeSourcery, LLC