From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8205 invoked by alias); 23 Feb 2005 04:32:43 -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 8173 invoked from network); 23 Feb 2005 04:32:39 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 23 Feb 2005 04:32:39 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1D3oCU-0003Kd-He; Tue, 22 Feb 2005 23:32:38 -0500 Date: Wed, 23 Feb 2005 16:00:00 -0000 From: Daniel Jacobowitz To: Olivier Singla Cc: gdb@sources.redhat.com Subject: Re: glibc-2.3.3 / gdb/gdbserver 6.3: can't debug threads Message-ID: <20050223043237.GA12782@nevyn.them.org> Mail-Followup-To: Olivier Singla , gdb@sources.redhat.com References: <421C0352.5020204@singla.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <421C0352.5020204@singla.us> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-02/txt/msg00147.txt.bz2 On Tue, Feb 22, 2005 at 11:15:14PM -0500, Olivier Singla wrote: > Hi, > > I am unsuccessful to debug threads with gdb (fc3) and gdbserver (powerpc > target). > > Here is my .gdbinit: > set auto-solib-add 1 > set solib-absolute-prefix > /opt/crosstool/powerpc-linux/gcc-3.4.1-glibc-2.3.3/powerpc-linux > target remote 10.128.128.251:9000 > set confirm off > sym ./test -readnow Try using "file" instead of symbol-file. > handle SIG32 nostop noprint > break main > shared > cont > shared > info sharedlibrary > > Problem is that I can't see the threads while debugging, but only the > main thread. > When I try to put a breakpoint to put thread function I then have: > Program received signal SIGTRAP, Trace/breakpoint trap. > > Also, I always have: > No shared libraries loaded at this time. > > If I debug the same program compiled for x86 on the PC, I can see > all the shared libraries that gdb has loaded. For some reason, that's > failing with gdbserver. > > When I run gdb with strace, I don't see that gdb try to load > libthread_db.so, > as I think it should. No, cross-gdb should not load the host's libthread_db. -- Daniel Jacobowitz CodeSourcery, LLC