From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2753 invoked by alias); 28 Aug 2007 18:16:20 -0000 Received: (qmail 2576 invoked by uid 22791); 28 Aug 2007 18:16:20 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Aug 2007 18:16:10 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 07C8C98153; Tue, 28 Aug 2007 18:16:10 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id DDE6C9812E; Tue, 28 Aug 2007 18:16:09 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IQ5bj-0007xa-4k; Tue, 28 Aug 2007 14:16:07 -0400 Date: Tue, 28 Aug 2007 18:16:00 -0000 From: Daniel Jacobowitz To: John Breitenbach Cc: gdb@sourceware.org Subject: Re: gdb-6.6/ARM/static linking/pthreads Message-ID: <20070828181607.GA30544@caradoc.them.org> Mail-Followup-To: John Breitenbach , gdb@sourceware.org References: <46D462BD.2020201@lpdev.prtdev.lexmark.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46D462BD.2020201@lpdev.prtdev.lexmark.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00240.txt.bz2 On Tue, Aug 28, 2007 at 02:00:29PM -0400, John Breitenbach wrote: > Hi, > I've got a statically linked application with a dozen or so pthreads (nptl in > glibc-2.3.6), and want to use gdb to debug it. With gdbserver, I attach to the > specific thread id, and can set a breakpoint. However, if that breakpoint is > hit by another of the pthreads, my kernel kills off all of them. You need both gdb and glibc patches to debug a statically linked application with pthreads. You can find them in the respective list archives (gdb-patches and libc-alpha) earlier this year. CVS snapshots of both GDB and glibc trunk should work; the glibc patch probably applies cleanly to glibc 2.3.6. -- Daniel Jacobowitz CodeSourcery