Re: [RFA] New substitute-path commands

Daniel Jacobowitz
2006-07-05T23:01:38Z

On Wed, Jul 05, 2006 at 02:56:06PM -0700, Joel Brobecker wrote:
> (gdb) substitute-path add <from> <to>
> (gdb) substitute-path remove
> (gdb) substitute-path
>
> * "substitute-path add" adds a substitution rule, where the first
> instance of <from> is replaced by <to>.
>
> * "substitute-path remove" removes the current substitution rule
> if one was specified. No effect otherwise.
>
> * "substitute-path" prints the current substitution rule.

Given your later explanation that you only support one entry, I find
"substitute-path add" a bit confusing. Shall we take a moment to think
about a general interface for lists?

If we had one, we could use it for other variables, and we could access
this using something like -gdb-set.

--
Daniel Jacobowitz
CodeSourcery