Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Nathan Sidwell <nathan@codesourcery.com>
Cc: Mark Kettenis <kettenis@gnu.org>,
	gdb-patches@sources.redhat.com, paul@codesourcery.com
Subject: Re: [patch] Dwarf2 virtual frame pointer
Date: Mon, 14 Feb 2005 09:41:00 -0000	[thread overview]
Message-ID: <20050212160500.GA32454@nevyn.them.org> (raw)
In-Reply-To: <420DFEDC.90002@codesourcery.com>

On Sat, Feb 12, 2005 at 01:04:28PM +0000, Nathan Sidwell wrote:
> 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?

DW_OP_fbreg is fine.  It's not relative to the CFA.  It's relative to
the value of DW_AT_frame_base in the containing function.

Recent versions of GCC can emit location lists for DW_AT_frame_base,
making it just about as accurate as the CFA.  I'm not sure when that
was introduced.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


      reply	other threads:[~2005-02-12 16:05 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
2005-02-12 15:52   ` Nathan Sidwell
2005-02-14  9:41     ` Daniel Jacobowitz [this message]

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=20050212160500.GA32454@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kettenis@gnu.org \
    --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