Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Orjan Friberg <orjan.friberg@axis.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Dwarf-2 unwinding vs. manual prologue analysis
Date: Thu, 26 May 2005 20:40:00 -0000	[thread overview]
Message-ID: <20050526150841.GA9804@nevyn.them.org> (raw)
In-Reply-To: <4295E439.7070104@axis.com>

Please use gdb@ for questions; I expect most messages to gdb-patches to
be in need of review :-)

On Thu, May 26, 2005 at 04:59:05PM +0200, Orjan Friberg wrote:
> When adding the CRISv32 support, it seemed like a good idea to avoid having 
> to do manual prologue analysis to determine where registers are saved, 
> figuring out the return address etc.  For some reason I imagined I wouldn't 
> have to do this if I could use the Dwarf-2 frame sniffer (because all code 
> would have Dwarf-2 CFI).  I hooked in the Dwarf-2 frame sniffer and 
> everything ran fine, and it wasn't until just recently that I discovered 
> (to my horror) that the prologue scanner (meant for CRISv10 only; the ISAs 
> are not compatible) was not only called when debugging CRISv32, but simple 
> things like 'next' broke in various places in the testsuite when I didn't 
> do it.
> 
> I do feel a bit embarrased asking this, as one would think I'd know this 
> already.  Since I obviously don't, here we go:
> 
> Do I need to able to do manual prologue analysis when there's Dwarf-2 CFI 
> available?  If so, is there a set of minimum requirements for what that 
> analysis must be able figure out?

No.  If enabling the DWARF-2 CFI support causes things to break, then
you need to inspect your CFI; it is probably broken.  You need to do
prologue analysis if there's anything without CFI that you need to
handle, which there usually is - for instance PLT stubs.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-05-26 15:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-26 15:24 Orjan Friberg
2005-05-26 20:40 ` Daniel Jacobowitz [this message]
     [not found]   ` <4296F9B6.10500@axis.com>
2005-05-28  8:58     ` Orjan Friberg

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=20050526150841.GA9804@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=orjan.friberg@axis.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