This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Deprecating commands; Was: RFC: patch for ...
"J.T. Conklin" wrote:
>
> >>>>> "Fernando" == Fernando Nasser <fnasser@cygnus.com> writes:
> Fernando> Talking about "bad" commands, what can be worse that the
> Fernando> "set" overloading? It should only work for gdb control
> Fernando> switches. The "set var" should be name "assign". But who
> Fernando> dares to change this after 15+ years...
>
> If we were to have a different command for setting variables, I'd pick
> "write" over "assign". However I see this in much the same way as the
> BASIC "LET" keyword --- a useless bit of syntactic sugar. I'd prefer
> being able to set program variables directly:
>
> (gdb) print x
> $1 = 3
> (gdb) x = 4
An asside, you know about things like:
(gdb) print x = 4
last time I counted I found something like 5 different set commands and
none that could be reliably used by a GUI :-).
Andrew