From: Jonas Maebe <jonas.maebe@elis.ugent.be>
To: gdb@sourceware.org
Subject: Re: Handing DW_OP_addr in computed symbol locations
Date: Mon, 16 Mar 2009 20:58:00 -0000 [thread overview]
Message-ID: <690761F6-5A92-4D90-B734-F6DB6468A71B@elis.ugent.be> (raw)
In-Reply-To: <20090316204409.GA4973@host0.dyn.jankratochvil.net>
On 16 Mar 2009, at 21:44, Jan Kratochvil wrote:
> On Fri, 13 Mar 2009 22:54:36 +0100, Jonas Maebe wrote:
>> * An aliases for the second field of the above record:
>> 0x0000005e: TAG_variable [3]
>> AT_name( "B" )
>> AT_location( <0x7> 03 2c 02 00 00 23 02 ( addr
>> 0x0000022c, plus uconst 0x0002 ) )
>
> This notation is excessive. You can use single DW_OP_addr already
> containing
> the constant addition. Any relocations only add the offset, RELA
> entries use
> the (A)rgument explicitly, REL entries implicitly. It was fixed for
> GCC in:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37738#c1
Thanks for the tip, this indeed works fine!
Jonas
prev parent reply other threads:[~2009-03-16 20:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 21:55 Jonas Maebe
2009-03-16 20:44 ` Jan Kratochvil
2009-03-16 20:58 ` Jonas Maebe [this message]
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=690761F6-5A92-4D90-B734-F6DB6468A71B@elis.ugent.be \
--to=jonas.maebe@elis.ugent.be \
--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