From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21827 invoked by alias); 19 Nov 2002 12:38:28 -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 21801 invoked from network); 19 Nov 2002 12:38:25 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 19 Nov 2002 12:38:25 -0000 Received: (from jimb@localhost) by zenia.red-bean.com (8.11.6/8.11.6) id gAJCLmZ23033; Tue, 19 Nov 2002 07:21:49 -0500 To: Alexander Larsson Cc: Ulrich Drepper , Subject: Re: Final separate debug info patch References: From: Jim Blandy Date: Tue, 19 Nov 2002 04:38: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/msg00218.txt.bz2 Alexander Larsson writes: > On 19 Nov 2002, Jim Blandy wrote: > > > > > Ulrich Drepper writes: > > > > > Alexander Larsson wrote: > > > > > > > That makes sense to me. Uli? Is this ok with you? > > > > > > I don't know. I imagine that strip is used like this in the build root > > > for the distribution. By preserving the entire path lots on unusable > > > information is leaked and distributed. This is true for many situations. > > > > > > Unless somebody can provide a really good reason why the entire path is > > > needed I rather not change anything. > > > > Well, my motivating case is a GDB test script that copies the > > executable elsewhere. At the moment, I can just override the > > compilation procedure in the target board file and run the entire GDB > > test suite against separated executables without modifying any of the > > test scripts. Except for this one test. Now, if strip kept an > > absolute path when it was given one, and GDB used it, then copying the > > executable wouldn't hurt, and everything would just work. > > > > If people don't want to include absolute paths, they don't have to > > give one to strip, it seems to me. Strip preserving what it's given > > doesn't take away anyone's choices. > > When i'm building in the build system i will always be using absolute > paths to put the files in the right place. For instance for /usr/bin/app > it will do -f $RPM_BUILD_ROOT/usr/lib/debug/usr/bin/app.debug. So we will > leak some strange absolute paths. Of course, if gdb used the basename > when searching the global directories that wouldn't affect the result, but > it is sort of ugly. I see. I'm fine with leaving the behavior as it is.