Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Gary Funck" <gary@intrepid.com>
To: <gdb@sourceware.org>
Subject: DWARF3 DW_OP_push_object_address - requirement for deferred evaluation?
Date: Tue, 06 Mar 2007 23:53:00 -0000	[thread overview]
Message-ID: <200703062353.l26Nr70j010496@intrepid.intrepid.com> (raw)
In-Reply-To: <20070306161211.GA3341@caradoc.them.org>


Daniel Jacobowitz replied:
> On Tue, Mar 06, 2007 at 07:49:02AM -0800, Gary Funck wrote:
> > I may have a need to use DW_OP_push_object_address.
> > Has any work been done in GDB to support some or all
> > of the DWARF3 functionality?
> 
> Yes - some, but not that particular bit [support for
DW_OP_push_object_address].  > It should not be at all hard.  It's a bit
complicated by the fact
> that GDB sometimes implicitly pushes the object address, though.

Is  decode_locdesc() (in dwarf2read.c) the only routine that
evaluates location descriptions?

Would you please elaborate on your statement that "GDB sometimes
implicitly pushes the object address"?

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?

If this is the case, it didn't appear to me that GDB currently has
a mechanism for delaying the binding of address information
that is required to reference a variable.  Or perhaps I missed
something?


  reply	other threads:[~2007-03-06 23:53 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   ` Gary Funck [this message]
2007-03-07  0:13     ` DWARF3 DW_OP_push_object_address - requirement for deferred evaluation? Gary Funck
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=200703062353.l26Nr70j010496@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