From: Andrew Cagney <ac131313@redhat.com>
To: Michal Ludvig <mludvig@suse.cz>
Cc: GDB Patches <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] Debug info detection.
Date: Fri, 07 Mar 2003 15:25:00 -0000 [thread overview]
Message-ID: <3E68B9FE.6090207@redhat.com> (raw)
In-Reply-To: <3E67D471.3040100@suse.cz>
> Hi all,
> The attached patch adds new function cfi_have_unwind_info() that I'll use for detection, whether a given function has a dwarf2 unwind info (from .eh_frame or .debug_frame) or not. I'll use it in the upcomming x86_64_frame_p() to detect which set of unwind functions should be returned for a given frame.
Your comment about x86_64_frame_p() makes me wonder if you're going in
the right direction.
Looking at the d10v, you'll see:
frame_unwind_append_predicate (gdbarch, d10v_frame_p);
For the x86-64, since it wants to also use dwarf2cfi and dwarf2eh, I'd
expect to see something like:
/* Try for a true CFI frame first. If that fails, fall back to
a .eh_frame info. */
frame_unwind_append_predicate (gdbarch, dwarf2cfi_frame_p);
frame_unwind_append_predicate (gdbarch, dwarf2eh_frame_p);
/* Finally, and as a last resort, use a prologue based unwinder. */
frame_unwind_append_predicate (gdbarch, x86_64_frame_p);
While I'm sure that splitting dwarf2cfi and dwarf2eh is logical, having
separate x86_64_frame_p() that only implements traditional prologe based
unwind is correct.
Can I suggest starting from the other end - a new file
dwarf2cfi-frame.[hc] and then moving in from there? The dwarf2expr.[hc]
code was recently added and that was ment to superseed much of dwarf2cfi.c.
I'd also have a copy of cagney_offbyone-20030303-branch handy (you could
even prototype the changes on it or a successor). That contains a key
fix that hasn't yet been committed to the mainline.
Andrew
next prev parent reply other threads:[~2003-03-07 15:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-06 23:06 Michal Ludvig
2003-03-07 15:25 ` Andrew Cagney [this message]
2003-03-07 15:48 ` Michal Ludvig
2003-03-07 16:32 ` 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=3E68B9FE.6090207@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mludvig@suse.cz \
/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