This is the mail archive of the gdb@sources.redhat.com 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: dwarf2 frame unwinder assumptions on SP


Mark Kettenis wrote:
> 
>    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.
> 

OK thanks. That way my preferred solution, but needed approval before
proceeding. It's very similar to what Daniel suggested, and works
well.

Christophe.


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