From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21606 invoked by alias); 22 Jan 2004 15:39:06 -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 21585 invoked from network); 22 Jan 2004 15:39:04 -0000 Received: from unknown (HELO thoth.sbs.de) (192.35.17.2) by sources.redhat.com with SMTP; 22 Jan 2004 15:39:04 -0000 Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.11.7/8.11.7) with ESMTP id i0MFd3729210; Thu, 22 Jan 2004 16:39:03 +0100 (MET) Received: from m20228pp.mchp.siemens.de (m20228pp.mchp.siemens.de [139.23.187.120]) by mail1.siemens.de (8.11.7/8.11.7) with ESMTP id i0MFd2Z16814; Thu, 22 Jan 2004 16:39:02 +0100 (MET) From: Gernot Hillier Organization: Siemens AG To: Daniel Jacobowitz Subject: Re: handling of absolute source file paths (feature wish/implementation idea) Date: Thu, 22 Jan 2004 15:39:00 -0000 User-Agent: KMail/1.5.4 Cc: gdb@sources.redhat.com References: <200401221601.17594.gernot.hillier@siemens.com> <20040122150717.GA20168@nevyn.them.org> In-Reply-To: <20040122150717.GA20168@nevyn.them.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200401221639.02120.gernot.hillier@siemens.com> X-SW-Source: 2004-01/txt/msg00245.txt.bz2 Hi! Am Donnerstag, 22. Januar 2004 16:07 schrieb Daniel Jacobowitz: > On Thu, Jan 22, 2004 at 04:01:14PM +0100, Gernot Hillier wrote: > > Revision 1.39, Mon Jan 13 20:11:47 2003 UTC by drow > > * source.c (openp): If the file does not exist don't necessarily > > search the path. > > > > 1. Reverting the change in the mainline as we did. I currently can see = no > > real reason why this change was made but I think there was a reason. So= I > > assume you won't like it, do you? > > I recommend you read the list archives to see why the change was made. > > You'd have found this: > > Sometime last April, when Joel committed a patch to not try to open > > directories as programs, we started always searching the given path in > > openp (). Try it: > > % gdb ./ls > > will open /bin/ls if there is no ls in the current directory. Sorry, I tried to search in the gdb archives for some keywords but the web= =20 search was terribly slow and so I gave up after three tries or so. But yes,= I=20 should've done it... :-} > > 3. Implement a new setting "source-absolute-prefix" (analog to the > > already existing "solib-absolute-prefix") which allows the user to set a > > prefix for given absolute source code paths. > > I think this is a good idea, but let's see if anyone else has an > opinion. And what about idea 2 (using the already given pathes, not using another=20 list)? This would be much less work to implement ;-) Let's say an additiona= l=20 parameter of openp which is only set by open_source_file() and only if=20 "source-absolute-search-mode" is enabled or so... --=20 Bye, Gernot Hillier CT SE 2 Siemens AG, Mch P