On 09/09, Jan Kratochvil wrote:
>
> > Cough... could you tell me how can I change the variable "done"
> > without printing it?
>
> (gdb) help set variable
> Evaluate expression EXP and assign result to variable VAR, using assignment
> syntax appropriate for the current language (VAR = EXP or VAR := EXP for
> example).  VAR may be a debugger "convenience" variable (names starting
> with $), a register (a few standard names starting with $), or an actual
> variable in the program being debugged.  EXP is any valid expression.
> This may usually be abbreviated to simply "set".

Thanks... but I tried this when I tested the fix.

        (gdb) p/x var
        $1 = 0x1234
        (gdb) set var
        Argument required (expression to compute).
        (gdb) set var 0
        (gdb) p/x var
        $2 = 0x1234

strange ;)

Oleg.

Reply via email to