[patch] Dwarf2 virtual frame pointer

Nathan Sidwell nathan@codesourcery.com
Thu Feb 10 13:53:00 GMT 2005


Hi,
The default frame pointer accessor only copes with a fixed frame pointer.
I've added a dwarf2_virtual_frame_pointer function, which can be enabled
with
  set_gdbarch_virtual_frame_pointer (gdbarch, dwarf2_virtual_frame_pointer)

It executes the cfa for the supplied PC and determines which register
is the frame pointer at that point.  I've not hooked it into any
existing architectures, but verified its functionality on an unrealeased
architecture where $sp or $fp might be the relevent register.

I've tested on i686-pc-linux-gnu also, ok?

nathan

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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dwarf-vfp.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20050210/8b3198b0/attachment.ksh>


More information about the Gdb-patches mailing list