From: "Gary Funck" <gary@intrepid.com>
To: <gdb@sourceware.org>
Subject: RE: DWARF3 DW_OP_push_object_address - requirement for deferred evaluation?
Date: Wed, 07 Mar 2007 00:13:00 -0000 [thread overview]
Message-ID: <200703070013.l270DSJo010763@intrepid.intrepid.com> (raw)
In-Reply-To: <200703062353.l26Nr70j010496@intrepid.intrepid.com>
Gary Funck wrote:
> Given that DW_OP_push_object_address was introduced in DWARF3 to
> provide support for objects and data that are described by
> "dope vectors", for which their address and other characteristics
> such as array bounds are not known until runtime .... is the case
> that the evaluation of a descriptor utilizing
> DW_OP_push_object_address
> must be deferred until either the referenced object is instantiated,
> or the GDB user makes reference to the object?
Scratch this question. I see where dwarf2_symbol_mark_computed(),
var_decode_location() calls dwarf2_symbol_mark_computed() which
copies the location description into the symbol table entry and
marks the location as LOC_COMPUTED.
Still, I was a bit confused by the code in add_partial_symbol(), which
checks to see if the symbol is external, and in that case seems to
assume that the location description is "simple" and can be computed
by decode_locdesc(), which evaluates to a fixed CORE_ADDR. If this
global variable in fact is allocated at runtime and its data and
size are described by a dope vector, then this assumption will not
hold? Is this one of those places that you were referring to
when you said that GDB sometimes pushes the object's address?
next prev parent reply other threads:[~2007-03-07 0:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 15:48 support for DWARF3 operations? Gary Funck
2007-03-06 16:12 ` Daniel Jacobowitz
2007-03-06 23:53 ` DWARF3 DW_OP_push_object_address - requirement for deferred evaluation? Gary Funck
2007-03-07 0:13 ` Gary Funck [this message]
2007-03-07 0:23 ` Daniel Jacobowitz
2007-03-06 16:14 ` support for DWARF3 operations? Gary Funck
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=200703070013.l270DSJo010763@intrepid.intrepid.com \
--to=gary@intrepid.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