From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26300 invoked by alias); 30 Mar 2006 16:34:43 -0000 Received: (qmail 26291 invoked by uid 22791); 30 Mar 2006 16:34:43 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 30 Mar 2006 16:34:42 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FP06X-0000Ne-C1 for gdb-patches@sourceware.org; Thu, 30 Mar 2006 11:34:37 -0500 Date: Thu, 30 Mar 2006 16:47:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: RFC: Initialize libthread_db at the right time Message-ID: <20060330163437.GC32409@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20060227194414.GA26229@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060227194414.GA26229@nevyn.them.org> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00368.txt.bz2 On Mon, Feb 27, 2006 at 02:44:14PM -0500, Daniel Jacobowitz wrote: > We've had some recurring problems debugging statically linked executables > using libthread_db; this patch is the first of several fixes for that. > This doesn't do much; it just splits the check out from the new_objfile > hook, and calls it from target_post_attach and target_post_startup_inferior > in the Linux native target. > > Earlier versions of this patch used an observer instead, which was silly > of me; we only want to do this when we're sitting on top of the Linux > native target, not when we're on top of e.g. the remote target. This > mostly fixes the not-enabling-libthread_db-when-we-should-be class of > problems; there's still one gross hack in remote.c which avoids > calling the new objfile hook for remote targets, but that's a mess > for another day. > > Any comments? Otherwise, I'll commit this in a few days. It handles > LinuxThreads, but NPTL needs a little push (coming up next). OK, more than a few days. And the NPTL push never got pushed, because the glibc maintainers didn't like my solution, but have not suggested an alternative yet. I'll poke them again. This part committed. -- Daniel Jacobowitz CodeSourcery