This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: handling of absolute source file paths (feature wish/implementation idea)
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Gernot Hillier <gernot dot hillier at siemens dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 22 Jan 2004 10:07:18 -0500
- Subject: Re: handling of absolute source file paths (feature wish/implementation idea)
- References: <200401221601.17594.gernot.hillier@siemens.com>
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.
> 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.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer