From: Daniel Jacobowitz <drow@false.org>
To: Gary Funck <gary@intrepid.com>
Cc: gdb@sourceware.org
Subject: Re: DWARF3 DW_OP_push_object_address - requirement for deferred evaluation?
Date: Wed, 07 Mar 2007 00:23:00 -0000 [thread overview]
Message-ID: <20070307002349.GA20195@caradoc.them.org> (raw)
In-Reply-To: <200703070013.l270DSJo010763@intrepid.intrepid.com>
On Tue, Mar 06, 2007 at 04:11:29PM -0800, Gary Funck wrote:
> 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?
No, it's an entirely different sort of problem. I think you'll be in
some difficulty with globals with computed addresses, though I'm not
sure how that would arise needing DW_OP_push_object_address.
Normally, it only occurs today for local variables...
I think there is some case where we evaluate simple location
descriptions relative to the object address, but shouldn't. However,
I do not remember the details.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-03-07 0:23 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
2007-03-07 0:23 ` Daniel Jacobowitz [this message]
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=20070307002349.GA20195@caradoc.them.org \
--to=drow@false.org \
--cc=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