This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] New substitute-path commands


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]