From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25704 invoked by alias); 19 Nov 2002 11:53:11 -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 25679 invoked from network); 19 Nov 2002 11:53:09 -0000 Received: from unknown (HELO devserv.devel.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 19 Nov 2002 11:53:09 -0000 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) with ESMTP id gAJBr8414464; Tue, 19 Nov 2002 06:53:08 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Tue, 19 Nov 2002 03:53:00 -0000 From: Alexander Larsson X-X-Sender: alexl@devserv.devel.redhat.com To: Jim Blandy cc: 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/msg00216.txt.bz2 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. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Alexander Larsson Red Hat, Inc alexl@redhat.com alla@lysator.liu.se He's an uncontrollable flyboy messiah in a wheelchair. She's a mentally unstable gypsy queen of the dead with an evil twin sister. They fight crime!