[RFA] New substitute-path commands

Daniel Jacobowitz drow@false.org
Fri Jul 14 13:46:00 GMT 2006


On Fri, Jul 14, 2006 at 04:43:22PM +0300, Eli Zaretskii wrote:
> > Date: Fri, 14 Jul 2006 09:05:59 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: Joel Brobecker <brobecker@adacore.com>, gdb@sources.redhat.com
> > 
> > > 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?
> > 
> > This was my suggestion, so I'll defend it :-)  I think of it as set "the
> > substitution path for FROM" to "TO".  The parallel is set env VAR
> > VALUE, which sets the environment variable VAR to VALUE.
> 
> In that case, we should at least have "show substitute-path FROM", not
> just "show substitute-path".

Sounds good to me!

I wonder if there's a way we can share the code for this and set env,
thus making it easier in the future to add similar variables?

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list