From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19544 invoked by alias); 22 Jan 2004 18:02:05 -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 19535 invoked from network); 22 Jan 2004 18:02:04 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 22 Jan 2004 18:02:04 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Ajj9Y-0003gb-4Z for ; Thu, 22 Jan 2004 13:02:04 -0500 Date: Thu, 22 Jan 2004 18:02:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: handling of absolute source file paths (feature wish/implementation idea) Message-ID: <20040122180203.GB18705@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <200401221601.17594.gernot.hillier@siemens.com> <20040122150717.GA20168@nevyn.them.org> <200401221639.02120.gernot.hillier@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401221639.02120.gernot.hillier@siemens.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-01/txt/msg00250.txt.bz2 On Thu, Jan 22, 2004 at 04:39:01PM +0100, Gernot Hillier wrote: > 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 > search was terribly slow and so I gave up after three tries or so. But yes, I > should've done it... :-} May want to use google instead. Even simpler, look at the gdb-patches archive for that particular month, and then search for relevant subjects that day or the day before. > > > 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 > list)? This would be much less work to implement ;-) Let's say an additional > parameter of openp which is only set by open_source_file() and only if > "source-absolute-search-mode" is enabled or so... Actually, source-absolute-prefix would not be too hard; it would be just about parallel to the existing implementation of solib-absolute-prefix. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer