From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6319 invoked by alias); 14 Mar 2003 14:17:56 -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 6248 invoked from network); 14 Mar 2003 14:17:56 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 14 Mar 2003 14:17:56 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18trtc-0001C1-00; Fri, 14 Mar 2003 10:19:00 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18tq0A-0002OA-00; Fri, 14 Mar 2003 09:17:38 -0500 Date: Fri, 14 Mar 2003 14:17:00 -0000 From: Daniel Jacobowitz To: Frank.Christ@RSBICK.rohde-schwarz.com Cc: gdb@sources.redhat.com Subject: Re: Remote Debugging Of Multithreaded Application on PPC 82xx Message-ID: <20030314141737.GA9144@nevyn.them.org> Mail-Followup-To: Frank.Christ@RSBICK.rohde-schwarz.com, gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-03/txt/msg00228.txt.bz2 On Fri, Mar 14, 2003 at 03:03:25PM +0100, Frank.Christ@RSBICK.rohde-schwarz.com wrote: > I am trying to setup a remote debugging session, so that I can debug my > multithreaded > application running on PPC 82xx and use gdb on my Intel host (i686, SuSE 7.0). > > I downloaded gdb version 5.3 and compiled gdb on the host (with target > powerpc-linux). > I also cross-compiled gdbserver (with option powerpc-linux). > > I have /lib/libthread_db.so.1 on the 8xx > have the target filesystem layout available on the host > have solib-absolute-prefix set to point to the target libraries > (solib-absolute-prefix=/opt/elinos/cdk/ppc/82xx/libc6/powerpc-linux) > > I can start the gdbserver on the target and gdb on the host and have a > connection by tcp/ip. > The application is multithreaded and uses the libpthread library. I can put > breakpoints in > every thread and break into my code. "info threads" gives all my threads and > everything > seems fine. > > However: > I can step through the main thread, but I cannot step through all my other > threads. When > I try to step with next in a client thread I get the following message: > > ------------------------------------- > (gdb) next > > Program received signal SIGTRAP, Trace/breakpoint trap. > [Switching to Thread 1024] > 0x0feee8a4 in nanosleep () from > /opt/elinos/cdk/ppc/82xx/libc6/powerpc-linux/lib/libc.so.6 > ------------------------------------ > > Any hints what my be wrong with my configuration? You may want to try the PREPARE_TO_PROCEED patch which I posted to gdb-patches yesterday; you can find the list archives on http://sources.redhat.com/ml/gdb-patches/2003-03/. There are also some bugs related to stepping alternate threads that require a change to the remote protocol, but I didn't get a consensus on how to solve them yet (and I ran out of time to pursue it; I'll try again soon). -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer