gdbstub initial code, v9

Oleg Nesterov oleg at redhat.com
Fri Sep 10 18:11:00 UTC 2010


On 09/10, Roland McGrath wrote:
>
> > >>>>> "Oleg" == Oleg Nesterov <oleg at redhat.com> writes:
> >
> > Oleg> 	(gdb) set var 0
> >
> > You need:  set variable var = 0
> > The "variable" can be abbreviated.
>
> I've always just used:
>
> 	(gdb) set var=0

No, I tried this too, doesn't work.

	(gdb) set var=0
	A syntax error in expression, near `=0'.

But, it turns out I choosed a bad name for the variable when
I tested the fix in unxex().

	(gdb) set xxx=0

This works.

	(gdb) set var var=0

This works too. I guess, when gdb sees "set var" it expects the
full "set variable ..." command.

Oleg.




More information about the utrace-devel mailing list