dwarf2 frame unwinder assumptions on SP
Daniel Jacobowitz
drow@false.org
Mon Jul 11 14:51:00 GMT 2005
On Mon, Jul 11, 2005 at 04:43:55PM +0200, Christophe LYON wrote:
>
> Hi all,
>
> I am working on the connection of the dwarf2 frame unwinder
> to our GDB port, and I have trouble with some assumptions
> made by GDB about SP.
>
> Currently, in my x-tdep.c I have:
> set_gdbarch_unwind_pc(gdbarch, x_unwind_pc);
> frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer);
It sounds like you need to set a "frame base" sniffer also, other than
the dwarf one. The dwarf2 frame unwinder does not set anything related
to the "frame base" used by symbolic debug information; it only unwinds
the stack pointer as best it can.
Does "print $sp" work correctly when unwinding?
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gdb
mailing list