From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4153 invoked by alias); 22 Mar 2003 21:35:11 -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 4142 invoked from network); 22 Mar 2003 21:35:10 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 22 Mar 2003 21:35:10 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18wsXR-0005cj-00; Sat, 22 Mar 2003 17:36:34 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18wqdw-0007nC-00; Sat, 22 Mar 2003 16:35:08 -0500 Date: Sat, 22 Mar 2003 21:35:00 -0000 From: Daniel Jacobowitz To: Gautham Thavva Cc: gdb@sources.redhat.com Subject: Re: Debugging a Multi-threaded application on PowerPC 82xx... Message-ID: <20030322213508.GA29939@nevyn.them.org> Mail-Followup-To: Gautham Thavva , 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/msg00325.txt.bz2 On Sat, Mar 22, 2003 at 04:06:33PM -0500, Gautham Thavva wrote: > > Hi, > > I downloaded gdb5.3 having read in the announcement that it supports multi-threaded debugging for powerpc-*-linux. I found similar queries in the archives (a week back) but would like to know the current status. > > I built gdb and gdbserver(following the README) > gdb: ./configure --target=powerpc-linux > > gdbserver: set the cross-compiler and then ran > ./configure --target=powerpc-linux > > I copied gdbserver into the target and initiated the communication between gdb and gdbserver through TCP/IP(following the documentation) > > I am able to place breakpoints on the main routine as well as on other threads. The debug cursor doesn't show up at the thread's place. > > I then built gdb in the target environment i.e built it natively on the target machine. The result was the same. I couldn't switch between the threads. > > I read in the archive about a patch PREPARE_TO_PROCEED Patch. I applied the patch and rebuilt gdb and gdbserver. Even then, the > thread switching didn't take place. > > I would like to know how to go about so that debugging the multi-threaded application is possible. I will look forward to valuable > responses from this mailing list. You didn't explain the problem. Please give us a session transcript illustrating what doesn't work. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer