Re: Should "dir" override the full path encoded in debug info?

Joel Brobecker
2006-06-26T02:44:37Z

> > Please correct me if I'm wrong, but wouldn't something like
> > substitute-path be more correct. I mean, this doesn't relate to a dir or
> > a filename does it? I may not completly understand what the new
> > functions input/output is though.
>
> Works for me.

substitute-path works for me too. (and I verified, no collision with
other commands).

Right now, the interface I have in mind is the following.

(gdb) substitute-path from to

Sets the substitution rule using "from" and "to".

(gdb) substitute-path

Delete the substitution rule

It just occured to me: Should add a way to show the current substitution
pattern? The "show" command prefix doesn't lend itself too well because
we have two arguments. Or perhaps is it ok to define our own processing
for the "show substitute-path" command:

(gdb) show substitute-path
Source paths are modified by substituting "from" with "to".

Thanks,
--
Joel