This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]