Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: drow@mvista.com
Cc: ac131313@redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [PATCH/i386newframe/RFC] DWARF CFI frame unwinder
Date: Mon, 05 May 2003 14:11:00 -0000	[thread overview]
Message-ID: <200305051411.h45EB012009794@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <20030505034242.GA21263@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 4 May 2003 23:42:42 -0400)

   Date: Sun, 4 May 2003 23:42:42 -0400
   From: Daniel Jacobowitz <drow@mvista.com>

   > >+static CORE_ADDR
   > >+dwarf_frame_base_address (struct frame_info *next_frame, void 
   > >**this_cache)
   > >+{
   > >+  struct dwarf_frame_cache *cache = dwarf_frame_cache (next_frame, 
   > >this_cache);
   > >+
   > >+  return cache->cfa;
   > >+}
   > 
   > This isn't right.

Probably yes.  I think I added this stuff when I was confused about
what exectly was the value printed by "info frame".

   > It should return DW_AT_frame_base.

I don't think that it is the job of the DWARF CFI module to provide
that.  I probably should simply remove the frame base code from the
DWARF CFI code, and trust the default frame base methods to do
something sane.

   > However, since 
   > dwarf2expr.c doesn't yet use these methods it doesn't [?] really matter. 
   >  Only affects ``info frame''.

   I don't think it should.

You mean return DW_AT_frame_base.

   The frame's CFA is the basis for identifying the frame and locating
   saved registers in the CFI.  It is always present when you have CFI.

   DW_AT_frame_base is the basis for locating saved variables and locals. 
   It is generally present when you have DWARF-2 debug info.

   The two are not necessarily related.

Indeed, there is no way of referencing the CFA from outside the DWARF
CFI info.

Mark


  parent reply	other threads:[~2003-05-05 14:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-04 22:07 Mark Kettenis
2003-05-05  3:35 ` Andrew Cagney
2003-05-05  3:42   ` Daniel Jacobowitz
2003-05-05 14:08     ` Andrew Cagney
2003-05-05 14:27       ` Daniel Jacobowitz
2003-05-05 14:52         ` Andrew Cagney
2003-05-05 14:59           ` Daniel Jacobowitz
2003-05-05 14:11     ` Mark Kettenis [this message]
2003-05-05 13:48   ` Mark Kettenis
2003-05-05 14:24     ` Andrew Cagney
2003-05-05 13:52   ` Mark Kettenis
2003-05-05 14:31     ` Andrew Cagney

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=200305051411.h45EB012009794@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=ac131313@redhat.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.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