From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27140 invoked by alias); 11 Jan 2007 22:17:40 -0000 Received: (qmail 27130 invoked by uid 22791); 11 Jan 2007 22:17:38 -0000 X-Spam-Check-By: sourceware.org Received: from 195.22.55.53.adsl.nextra.cz (HELO host0.dyn.jankratochvil.net) (195.22.55.53) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 11 Jan 2007 22:17:31 +0000 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.13.8/8.13.8) with ESMTP id l0BMHQCU004557; Thu, 11 Jan 2007 23:17:26 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.13.8/8.13.8/Submit) id l0BMHPEO004556; Thu, 11 Jan 2007 23:17:25 +0100 Date: Thu, 11 Jan 2007 22:17:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: Daniel Jacobowitz Subject: Re: [review] Fix backtrace of prelinked libc with separate debuginfo Message-ID: <20070111221725.GA12498@host0.dyn.jankratochvil.net> References: <20061029223912.GA24248@host0.dyn.jankratochvil.net> <20070109224323.GJ30631@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070109224323.GJ30631@nevyn.them.org> User-Agent: Mutt/1.4.2.2i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00310.txt.bz2 On Tue, 09 Jan 2007 23:43:23 +0100, Daniel Jacobowitz wrote: > On Sun, Oct 29, 2006 at 11:39:12PM +0100, Jan Kratochvil wrote: > > It is (I believe) due to the fact the system libc gets prelinked to some > > address but the separate debuginfo file is not updated for the prelinked > > address. `matching_bfd_sections' will fail to match afterwards. > > > > Not sure if the testcase properly fails on all systems, it works for me with > > the prelinking in effect. > > Right. It won't fail on Debian even with prelinking I was trying to figure it out but there are too many combinations and without the system available... While my patch was for matching_bfd_sections() (not present in gdb-6.5 and therefore neither in debian-unstable) I imported matching_bfd_sections() specifically to fix this bug before as it was easier than without the matching_bfd_sections() patch. > - I think this is > because Debian uses binutils' objcopy program, which puts the stripped > symbols in the debug file, but eu-strip leaves them only in the > original file. Which seems pretty strange but that's what it does. The libbfd backward compatibility was recently restored by elfutils. Currently a partial symtab copy is being made: * Wed Oct 11 2006 Roland McGrath - 0.124-1 - eu-strip -f: copy symtab into debuginfo file when relocs use it ... > I updated the test case to work with remote targets and then checked > this in. Thanks. Regards, Jan