Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: mjw@redhat.com (Mark Wielaard)
Cc: tromey@redhat.com, gdb-patches@sourceware.org
Subject: Re: FYI: fix big-endian bug with DWARF_VALUE_STACK
Date: Wed, 24 Feb 2010 16:10:00 -0000	[thread overview]
Message-ID: <201002241609.o1OG9tEW014381@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <1267021199.6461.10.camel@springer.wildebeest.org> from "Mark Wielaard" at Feb 24, 2010 03:19:59 PM

Mark Wielaard wrote:
> On Wed, 2010-02-24 at 15:11 +0100, Ulrich Weigand wrote:
> > However, maybe I'm missing something here, in particular as I haven't been
> > able to find a formal specification of DW_OP_stack_value -- I assume this
> > is in the current DWARF4 draft?  Is this available somewhere?
> 
> The latest drafts are here: http://www.dwarfstd.org/doc/

Thanks!

So in the latest draft we have:

  The DW_OP_stack_value operation specifies that the object does not exist
  in memory but its value is nonetheless known and is at the top of the DWARF
  expression stack. In this form of location description, the DWARF expression
  represents the actual value of the object, rather than its location.
  The DW_OP_stack_value operation terminates the expression.

and an example:

  DW_OP_lit1 DW_OP_stack_value DW_OP_piece 4
  DW_OP_breg3 0 DW_OP_breg4 0 DW_OP_plus DW_OP_stack_value DW_OP_piece 4

  The object value is found in an anonymous (virtual) location whose value
  consists of two parts, given in memory address order: the 4 byte value 1
  followed by the four byte value computed from the sum of the contents of
  r3 and r4.

This doesn't fully resolve the question for me, but at least there's no
explicit reference to the address size here ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2010-02-24 16:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-23 16:08 Tom Tromey
2010-02-23 16:16 ` Tom Tromey
2010-02-23 19:53 ` Ulrich Weigand
2010-02-23 20:26   ` Tom Tromey
2010-02-24 14:12     ` Ulrich Weigand
2010-02-24 14:20       ` Mark Wielaard
2010-02-24 16:10         ` Ulrich Weigand [this message]
2010-02-24 16:30       ` Tom Tromey
2010-02-25 20:44         ` Ulrich Weigand
2010-02-25 21:03           ` Tom Tromey
2010-02-26 12:50             ` Ulrich Weigand

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=201002241609.o1OG9tEW014381@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mjw@redhat.com \
    --cc=tromey@redhat.com \
    /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