[PATCH+DOC] Print registers not saved in the frame as "<not saved>", instead of "<optimized out>".

Andreas Schwab schwab@linux-m68k.org
Wed Sep 18 16:30:00 GMT 2013


Pedro Alves <palves@redhat.com> writes:

> diff --git a/gdb/NEWS b/gdb/NEWS
> index af06a21..b06f90c 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -15,6 +15,15 @@
>  
>  * The "catch syscall" command now works on arm*-linux* targets.
>  
> +* GDB now shows "<not saved>" when printing values of registers that
> +  have not been saved in the frame:
> +
> +    (gdb) p $rax $1 = <not saved>
                   ^s/ /\n/
> +    (gdb) info registers rax rax <not saved>
                               ^s/ /\n/

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb-patches mailing list