This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] New substitute-path commands
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 5 Jul 2006 19:01:29 -0400
- Subject: Re: [RFA] New substitute-path commands
- References: <20060705215606.GF3580@adacore.com>
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