From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21189 invoked by alias); 4 Dec 2007 17:10:31 -0000 Received: (qmail 21181 invoked by uid 22791); 4 Dec 2007 17:10:31 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Dec 2007 17:10:18 +0000 Received: (qmail 14611 invoked from network); 4 Dec 2007 17:10:15 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Dec 2007 17:10:15 -0000 To: Michael Snyder Cc: Brian Budge , gdb@sourceware.org Subject: Re: info threads References: <5b7094580712021509s5521c61fhd2bcefcfa0369aab@mail.gmail.com> <20071202235626.GA10030@caradoc.them.org> <5b7094580712031329o7754410el60dc06e8b1af2078@mail.gmail.com> <1196738175.2501.223.camel@localhost.localdomain> From: Jim Blandy Date: Tue, 04 Dec 2007 17:10:00 -0000 In-Reply-To: <1196738175.2501.223.camel@localhost.localdomain> (Michael Snyder's message of "Mon, 03 Dec 2007 19:16:15 -0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-12/txt/msg00024.txt.bz2 Michael Snyder writes: > On Mon, 2007-12-03 at 13:29 -0800, Brian Budge wrote: >> Thanks for the pointer. This was on Gentoo Linux, and libpthread was >> indeed stripped. I recompiled glibc with FEATURES="nostrip", and >> everything works great. > > You might let the Gentoo folks know that gdb thread debugging > will not work if they ship that library stripped. Just a thought: stripping doesn't remove the dynamic symbol table. I think GDB reads both the dynamic and static ELF symbol tables. If we could get the symbols libpthread_db needs into libpthread's dynamic symbol table, would that prevent stripping from breaking thread debugging?