handling of absolute source file paths (feature wish/implementation idea)
Daniel Jacobowitz
drow@mvista.com
Thu Jan 22 15:07:00 GMT 2004
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
More information about the Gdb
mailing list