From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3672 invoked by alias); 17 Jun 2002 03:44:44 -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 3662 invoked from network); 17 Jun 2002 03:44:40 -0000 Received: from unknown (HELO nevyn.them.org) (66.19.120.33) by sources.redhat.com with SMTP; 17 Jun 2002 03:44:40 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17JnRK-0000lO-00; Sun, 16 Jun 2002 23:44:26 -0400 Date: Sun, 16 Jun 2002 20:44:00 -0000 From: Daniel Jacobowitz To: Dan Kegel Cc: Ankur Sheth , "''gdb@sources.redhat.com' '" Subject: Re: gdbserver and multithreaded programs Message-ID: <20020617034426.GA2715@nevyn.them.org> Mail-Followup-To: Dan Kegel , Ankur Sheth , "''gdb@sources.redhat.com' '" References: <9A9C83C019F35D47A570460E87D5D8AB027592DF@racerx.ixiacom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9A9C83C019F35D47A570460E87D5D8AB027592DF@racerx.ixiacom.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-06/txt/msg00122.txt.bz2 On Fri, Jun 14, 2002 at 11:16:11PM -0700, Dan Kegel wrote: > Daniel Jacobowitz wrote: > > > ppc405 - worked on single threaded program, but on multithreaded > > > program output zillions of > > > > > > Ignoring packet error, continuing... > > > Ignoring packet error, continuing... > > > as soon as we tried to step thru main. > > > > > > sh4 - worked fine on single threaded program, but on > > > multithreaded program it output the following message. > > > > > > Program received signal SIG32, Real-time event 32. > > > > The "received signal SIG32" means that thread_db did not load. Most > > likely this means GDB did not find your libraries. On ppc405 I'd guess > > that it found an incorrect copy of the libraries. Are you setting > > solib-absolute-prefix correctly? > > No, we weren't setting it at all. Thanks for the tip; works much > better now on ppc405. I did see a strange message > "Program received signal SIGTRAP, Trace/breakpoint trap." > a few times, but in general I'm able to step through a program > that creates lots of threads on ppc405 now. Huzzah! > (Haven't tried sh4 again yet.) Hmm, if you can make a simple program that reproduces the SIGTRAPs I would greatly appreciate it. I'm pretty sure I committed the right copy; I spent a long time trying to kill those things. > Still not trivial to build and use in a cross-compiled environment > (what is?), but a good FAQ ought to help that. Documentation, documentation. And some more sanity checks. I'm working on it. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer