Strangeness in set command

Doug Evans dje@google.com
Wed Apr 9 00:35:00 GMT 2008


On Tue, Apr 8, 2008 at 11:56 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>  > From: Andrew STUBBS <andrew.stubbs@st.com>
>  > Eli Zaretskii wrote:
>  > > Or maybe, if the text after "set " has a `=' character in it, we
>  > > should ask whether the user really meant "set variable".  IOW, refuse
>  > > to obey this shortcut, even if it's unambiguous.
>  > >
>  >
>  > Hmmm, that's not great for set args:
>  >
>  > (gdb) set args --command=myscript
>
>  That one could be special-cased.

There's also prompt, env, and others.  Maybe the thing to do is key
off of var_string, etc., except that one can pass expressions for
integer/boolean vars.  Does the command parser know in time what it's
working with?



More information about the Gdb mailing list