From: Mark Kettenis <kettenis@gnu.org>
To: nathan@codesourcery.com
Cc: gdb-patches@sources.redhat.com, paul@codesourcery.com
Subject: Re: [patch] Dwarf2 virtual frame pointer
Date: Sat, 12 Feb 2005 13:04:00 -0000 [thread overview]
Message-ID: <200502120312.j1C3CSid022971@copland.sibelius.xs4all.nl> (raw)
In-Reply-To: <420B2F90.4060403@codesourcery.com> (message from Nathan Sidwell on Thu, 10 Feb 2005 09:55:28 +0000)
From: Nathan Sidwell <nathan@codesourcery.com>
Date: Thu, 10 Feb 2005 09:55:28 +0000
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?
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.
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.
Mark
next prev parent reply other threads:[~2005-02-12 3:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-10 13:53 Nathan Sidwell
2005-02-12 13:04 ` Mark Kettenis [this message]
2005-02-12 15:52 ` Nathan Sidwell
2005-02-14 9:41 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200502120312.j1C3CSid022971@copland.sibelius.xs4all.nl \
--to=kettenis@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=nathan@codesourcery.com \
--cc=paul@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox