From: Carl Burch <cdb@cup.hp.com>
To: gdb@sourceware.org
Subject: DWARF-2 expression error in location list entries
Date: Tue, 08 May 2007 20:22:00 -0000 [thread overview]
Message-ID: <200705082022.NAA04796@hpadl693.cup.hp.com> (raw)
In dwarf2expr.c function execute_stack_op() there are two occurrences of
error() calls asserting :
if (op_ptr != op_end && *op_ptr != DW_OP_piece)
error (_("DWARF-2 expression error: DW_OP_reg operations must be "
"used either alone or in conjuction with DW_OP_piece."));
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 expression we have in mind to add is to describe Fortran reference
parameters in location list entries like :
{ 0x4022720--0x4022724: DW_OP_regx 32 DW_OP_deref }
Yes, we know that Gnu Fortran describes reference params in terms of passing
the underlying pointers by value instead of the original Fortran types by
reference, thereby avoiding this problem. This is a case where we're trying
to be better instead of de facto standard.
- Carl Burch
HP WDB Team
P.S. If anyone edits this file soon, you might want to fix the spelling of
"conjuction" in the message.
next reply other threads:[~2007-05-08 20:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-08 20:22 Carl Burch [this message]
2007-05-08 20:36 ` Daniel Jacobowitz
2007-05-08 22:49 Carl Burch
2007-05-08 23:51 ` Daniel Jacobowitz
2007-05-10 1:21 David Anderson
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=200705082022.NAA04796@hpadl693.cup.hp.com \
--to=cdb@cup.hp.com \
--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