Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Jonas Maebe <jonas.maebe@elis.ugent.be>
Cc: gdb@sourceware.org
Subject: Re: Handing DW_OP_addr in computed symbol locations
Date: Mon, 16 Mar 2009 20:44:00 -0000	[thread overview]
Message-ID: <20090316204409.GA4973@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <2DF7F3A9-002C-4D52-9FB2-D7DFFBA36024@elis.ugent.be>

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


>                  AT_type( {0x00000083} ( SMALLINT ) )
>
> Now, the DW_OP_addr for the original variable and the one for the alias 
> are handled in a completely different way by gdb's DWARF2 reader:

Which would no longer exploit the existing GDB relocation bug.



Regards,
Jan


  reply	other threads:[~2009-03-16 20:44 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 [this message]
2009-03-16 20:58   ` Jonas Maebe

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=20090316204409.GA4973@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=jonas.maebe@elis.ugent.be \
    /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