This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [RFA] New substitute-path commands
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 14 Jul 2006 13:37:18 +0300
- Subject: Re: [RFA] New substitute-path commands
- References: <20060707052219.GA971@adacore.com> <u8xn5rbx7.fsf@gnu.org> <20060707191203.GD971@adacore.com> <uhd1sp9uv.fsf@gnu.org> <20060710054027.GF971@adacore.com> <ud5cdnsml.fsf@gnu.org> <20060710214706.GA2390@adacore.com> <20060710215114.GA31444@nevyn.them.org> <20060710215630.GB2390@adacore.com> <20060710215839.GA31772@nevyn.them.org> <20060713212746.GA1519@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 13 Jul 2006 14:27:46 -0700
> From: Joel Brobecker <brobecker@adacore.com>
>
> The interface is as follow:
>
> (gdb) set substitute-path FROM TO
> (gdb) unset substitute-path [FROM]
> (gdb) show substitute-path
>
> The "set" command will add a substitution rule.
If this _adds_ a rule, then "set SOMETHING" is not a good UI, IMO.
How about just "substitute-path", similar to "dir", which also _adds_
a directory?
> Actually, as I'm writing this, I now favor first-entered/first-used.
> One can delete a rule if he wants to override it.
Agreed. Let's just make the logic clear in the manual.