From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7972 invoked by alias); 19 Nov 2004 14:23:04 -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 7926 invoked from network); 19 Nov 2004 14:22:57 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 19 Nov 2004 14:22:57 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CV9ep-0003Vq-97; Fri, 19 Nov 2004 09:22:39 -0500 Date: Fri, 19 Nov 2004 14:42:00 -0000 From: Daniel Jacobowitz To: Vladimir Vorobyov Cc: gdb@sources.redhat.com Subject: Re: pthreads debug with gdbserver Message-ID: <20041119142238.GA13372@nevyn.them.org> Mail-Followup-To: Vladimir Vorobyov , gdb@sources.redhat.com References: <200411191233.22357.vladimir.vorobyov@iss.org.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200411191233.22357.vladimir.vorobyov@iss.org.ua> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-11/txt/msg00198.txt.bz2 On Fri, Nov 19, 2004 at 12:33:22PM +0200, Vladimir Vorobyov wrote: > I see that shlib breakpoint is set and hit but gdb does not load the > libraries. I can see in strace that it successfully loads ld.so. What should > I look at? "info shared". Maybe strace GDB to see what it's opening and whether it fails to find any files. > Next, what libthread_db.so is for? It was not included for compilation for > m68k target and I added it manually but when I try to load all libraries > manually using add-symbol-file, every library loads fine except > libthread_db.so - gdbserver reports "gbd: error initializing thread_db > library." > If I type in gdb: > info threads > I always get only one thread. > p.s. All libraries are not stripped. libthread_db.so is necessary to debug threads. It has to be on your target (sounds like it is) and it has to be able to initialize; worry about this after you've figured out whether GDB loaded shared libraries, because it will not be able to initialize unless GDB can load an unstripped copy of libpthread.so. -- Daniel Jacobowitz