From: Daniel Jacobowitz <drow@false.org>
To: gdb@sourceware.org, Mark Kettenis <kettenis@gnu.org>
Subject: dwarf2-frame vs set_loc
Date: Thu, 28 Sep 2006 22:42:00 -0000 [thread overview]
Message-ID: <20060928224245.GA21955@nevyn.them.org> (raw)
Hi Mark,
I can't work out a way to fix this in the time I've got this evening,
so I just wanted to record it, and send a copy your way in case you're
interested in fixing it; you're more familiar with dwarf2-frame.c and
the formats it handles than I am.
GCC was temporarily changed to use DW_CFA_set_loc at the start of FDEs.
I believe that change has now been backed out again; it was wrong (and
partly my fault). But Debian happened to pick up a snapshot containing
that patch and it caused a couple of GDB test failures. At least one,
anyway, I'm not sure if the other two had the same cause. This is on
x86_64.
I tracked the problem down to use of dwarf2_read_address. As far as I
can tell, what we really need is to use read_encoded_value for this.
But, that wants a "struct comp_unit" (misleading name? It's really not
DW_TAG_compile_unit related at all, it's the whole object). And we
don't have one any more by the time we're in execute_cfa_program, so
that's where I gave up.
Anyway, there's an 'R' augmentation specifying the encoding, which
happens to use only four bytes for pointers and not the eight that
dwarf2_read_address is expecting, and so we decide the first
instruction of the FDE is way out in the middle of nowhere. Backtraces
break.
--
Daniel Jacobowitz
CodeSourcery
next reply other threads:[~2006-09-28 22:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 22:42 Daniel Jacobowitz [this message]
2006-09-29 19:33 ` Joel Brobecker
2006-09-29 19:37 ` Daniel Jacobowitz
2006-09-29 20:09 ` David Daney
2006-10-04 3:14 ` Joel Brobecker
2006-10-04 13:37 ` 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=20060928224245.GA21955@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=kettenis@gnu.org \
/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