Re: [patch] Dwarf2 virtual frame pointer

Nathan Sidwell
2005-02-12T13:04:44Z

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