[patch] Dwarf2 virtual frame pointer

Nathan Sidwell nathan@codesourcery.com
Sat Feb 12 15:52:00 GMT 2005


Mark Kettenis wrote:

> Almost certainly no.  Replacing `struct frame *next_frame' with
> `CORE_ADDR pc' is moving backward instead of forward.  Any functions
> that starts with legacy_ should not be used in generic code like the
> code in dwarf2-frame.c.
oh, ok.

> Can you explains what you're trying to accomplish?
> 
> If you're trying to use the DWARF CFI for anything else than unwinding
> the stack, like finding out whether the location of local variables is
> relative to $sp or $fp then rethink your strategy.  This is not what
> the DWARF CFI is for.

ok.  Then how do I find out that information? The compiler (gcc 3.4) is
emitting DW_OP_fbreg location information for the local variables, should
it be emitting something else?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gdb-patches mailing list