This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: reliabilitâ y of registers contents within each frame
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Ivan Di Prima <ivandiprima at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 13 Apr 2012 15:21:27 +0200
- Subject: Re: reliabilitâ y of registers contents within each frame
- References: <4F8723C8.5060900@gmail.com>
On Thu, 12 Apr 2012 20:49:44 +0200, Ivan Di Prima wrote:
> Basically if move "up" and "down" between frames and then display the
> register contents with "info reg" do I see ALL the register captured in that
> frame or just the registers which are "push" on the stack within the source
> code?
"ALL". Which registers are saved by which frame you see in "info frame".
> Also, will optimization affect register values such that even if they are
> not marked "<value optimized out>" by gdb their values will still be
> readable but unreliable?
I was told it applies to gcc-4.0+. While the mail below is not a direct
countercase I trust more just gcc-4.5+:
[patch] Fix regression by me for gcc-4.0...gcc-4.4 i386 -O2 -g parameters (PR 13777)
http://sourceware.org/ml/gdb-patches/2012-02/msg00673.html
Regards,
Jan