From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22608 invoked by alias); 19 Nov 2002 07:51:04 -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 22601 invoked from network); 19 Nov 2002 07:51:02 -0000 Received: from unknown (HELO devserv.devel.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 19 Nov 2002 07:51:02 -0000 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) with ESMTP id gAJ7p2R04062; Tue, 19 Nov 2002 02:51:02 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 18 Nov 2002 23:51:00 -0000 From: Alexander Larsson X-X-Sender: alexl@devserv.devel.redhat.com To: Jim Blandy cc: gdb@sources.redhat.com, Ulrich Drepper Subject: Re: Final separate debug info patch In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-11/txt/msg00208.txt.bz2 On 19 Nov 2002, Jim Blandy wrote: > Is there any particular reason that the elfutils `strip -f' throws > away all but the last component of the filenames given to it? None in particular. I just didn't need the full pathname with the search-method i used in the gdb patch. > $ /home/jimb/elfutils/bin/strip -f `pwd`/foon call-rt-st > $ objdump -s -j .gnu_debuglink call-rt-st > > call-rt-st: file format elf32-i386 > > Contents of section .gnu_debuglink: > 0000 666f6f6e 00000000 f74a8703 foon.....J.. > $ > > It seems to me that strip should preserve the filename given in its -f > argument. Let consumers of the .gnu_debuglink section decide for > themselves what to do with it. > > Then, I think if the filename in the .gnu_debuglink section is > absolute, GDB should try that path instead of searching in the > directory containing the stripped file. Or it should at least try it > at some point. That makes sense to me. Uli? Is this ok with you? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Alexander Larsson Red Hat, Inc alexl@redhat.com alla@lysator.liu.se He's a superhumanly strong Jewish romance novelist who must take medication to keep him sane. She's a mistrustful hypochondriac bodyguard from a family of eight older brothers. They fight crime!