From: David Anderson <davea42@earthlink.net>
To: gdb@sourceware.org
Subject: Re: DWARF-2 expression error in location list entries
Date: Thu, 10 May 2007 01:21:00 -0000 [thread overview]
Message-ID: <4642729E.7010406@earthlink.net> (raw)
> A couple of us have looked for that first restriction in the DWARF3
> standard and not found it. I also went back to the DWARF2 standard
> literally cited by the message and failed to find it there as well. Can
> anyone point out where to read the restriction these error() calls refer to?
The clearest hint is in DWARF3 2.6.1:
"The following DWARF operations can be used to name a register. They can be used only in
location expressions. Each register name operator must be used alone (as a DWARF expression
consisting of just that one operation)."
(goes on to mention DW_OP_reg*).
It's true that this is not as clear as it should be
(DW_OP_piece is not mentioned in 2.6.1, for example).
2.6.2 does try to clarify this, but it's not easy to interpret.
But Daniel Jacobowitz is exactly right.
These can only be used stand-alone (or with DW_OP_piece).
Jim Blandy suggested a nice little grammar
which made all this quite clear (March 8 2007, dwarf-discuss mailing list).
The lack of clarity issue got lost in a discussion about a proposal
on constant expressions in location lists. I'll resurrect Jim's suggestion
for the DWARF committee.
Regards,
David Anderson
next reply other threads:[~2007-05-10 1:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 1:21 David Anderson [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-08 22:49 Carl Burch
2007-05-08 23:51 ` Daniel Jacobowitz
2007-05-08 20:22 Carl Burch
2007-05-08 20:36 ` 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=4642729E.7010406@earthlink.net \
--to=davea42@earthlink.net \
--cc=gdb@sourceware.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