This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Invalid registers
On Tue, Jul 12, 2005 at 05:04:41PM +0100, Andrew STUBBS wrote:
> Thank you. This has helped me find the right stuff to look at.
>
> I do not think I actually want to use dwarf2_frame_set_init_reg. The
> compiler (GCC 3.4.3) produces CFI information which I think ought to be
> enough.
>
> The function execute_cfa_program in dwarf2-frame.c appears to load all the
> relevant data (setting breakpoints in strategic places show this). If I
> use 'up' and 'info registers' I see the values change, which shows that
> the CFI data has been loaded (doesn't it?). It just appears that the 'how'
> field from the CFA is being ignored when the values are printed. Setting
> 'how' via dwarf2_frame_set_init_reg is not ignored however. It must be
> being reset, or perhaps not copied in the first place.
>
> Any clues?
Sorry, not enough information - I'd need specifics. GCC's CFI
generally does not represent call-clobbered registers; waste of space
for a runtime unwinder.
--
Daniel Jacobowitz
CodeSourcery, LLC