From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19108 invoked by alias); 19 Nov 2002 06:11:48 -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 19081 invoked from network); 19 Nov 2002 06:11:47 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 19 Nov 2002 06:11:47 -0000 Received: (from jimb@localhost) by zenia.red-bean.com (8.11.6/8.11.6) id gAJ5tD006263; Tue, 19 Nov 2002 00:55:13 -0500 To: Alexander Larsson Cc: gdb@sources.redhat.com Subject: Re: Final separate debug info patch References: From: Jim Blandy Date: Mon, 18 Nov 2002 22:11:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-11/txt/msg00205.txt.bz2 Is there any particular reason that the elfutils `strip -f' throws away all but the last component of the filenames given to it? $ /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. We have a test in the GDB test suite that copies its executable to /tmp. It would be nice if we didn't have to add special support to that test case to copy over the debug info, too. If the filename in .gnu_debuglink were absolute, and if GDB were to respect that, this would work transparently.