This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FYI: fix big-endian bug with DWARF_VALUE_STACK


>>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:

Ulrich> This seems somewhat different in that the DW_OP_implicit_value
Ulrich> explicitly provides data of a certain length.  On the other
Ulrich> hand, DW_OP_stack_value refers to the value on top of the stack,
Ulrich> which -as I understand it- is a numerical value, not a sequence
Ulrich> of bytes of defined length.

Elements on the operand stack are explicitly address-sized.  From DWARF
1.11.1:

    Each element of the stack is the size of an address on the target
    machine.

Ulrich> So it would seem to me that you should be able to request that
Ulrich> this value be represented in any arbitrary length ...

That interpretation makes sense to me, but so does the one making it an
error.  I suspect we will never run across code that exercises this.  If
you want to change it, I have no objection.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]