From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2466 invoked by alias); 17 Mar 2005 22:13:14 -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 2071 invoked from network); 17 Mar 2005 22:13:08 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 17 Mar 2005 22:13:08 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1DC3Eg-00051F-4E; Thu, 17 Mar 2005 17:12:58 -0500 Date: Thu, 17 Mar 2005 22:13:00 -0000 From: Daniel Jacobowitz To: Ajay Patel Cc: gdb@sources.redhat.com Subject: Re: unable to debug statically linked program with linux threads Message-ID: <20050317221258.GA19258@nevyn.them.org> Mail-Followup-To: Ajay Patel , gdb@sources.redhat.com References: <1111097217.25342@horse.he.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1111097217.25342@horse.he.net> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00175.txt.bz2 On Thu, Mar 17, 2005 at 02:06:57PM -0800, Ajay Patel wrote: > > Hi, > I have a FC3 based i686 machine with gdb version 6.1. > I got a simple threaded program from one BSD. (program attached) > > With dynamic linking (linux threads), I can run > the program under gdb without a problem. > All thread related commands seems to work properly. > > With static linking, when I run this program under > gdb, first I get > "Program received signal SIG32/SIG33 Real-time event 32/32". > I avoid this problem by > "handle SIG32/SIG33 pass nostop noprint". > > However none of the thread related command works. > > Any suggestion? There's a patch in the gdb-patches archive for this. I'll go ping it... it applies to CVS HEAD GDB. -- Daniel Jacobowitz CodeSourcery, LLC