dwarf2 frame unwinder assumptions on SP
Mark Kettenis
mark.kettenis@xs4all.nl
Mon Jul 11 19:47:00 GMT 2005
Date: Mon, 11 Jul 2005 12:03:34 -0400
From: Daniel Jacobowitz <drow@false.org>
On Mon, Jul 11, 2005 at 05:58:14PM +0200, Christophe LYON wrote:
> I don't see what to do in init_reg without adding a new value to the
> dwarf2_frame_reg_rule enum. Do you mean changing the semantics of
> DWARF2_FRAME_REG_CFA and provide a frame_prev_register() method
> to interpret it accordingly?
No. Change it globally in dwarf2-frame.c, since the offset field is
currently unused with that rule.
It's probably better to introduce DWARF2_FRAME_REG_CFA_OFFSET just
like we did for DWARF2_FRAME_REG_RA_OFFSET. That would be #1 on your
list, Christophe.
I have the nagging feeling this has come up before, but I can't
remember the conclusion.
In the past we have discussed the relation between DW_OP_fbreg and
CFA; some GCC port was never defining the frame base, and someone
tried to use CFA. The conclusion then was that the CFA is defined
only for the call frame info. This is why #4 on Christophe's list
isn't the way to go.
Mark
More information about the Gdb
mailing list