[PATCH] Handle GNU extension opcodes in dwarf_getlocation

Petr Machata pmachata at redhat.com
Tue Oct 9 20:50:20 UTC 2012


Mark Wielaard <mjw at redhat.com> writes:

> On Tue, Oct 09, 2012 at 02:27:51AM +0200, Petr Machata wrote:
>> This is just for low-level byte munching support, so that libdw knows
>> how to decode the opcode stream, and doesn't fail when it encounters one
>> of the new opcodes.
>
> The decoding of the OPs seems correct. Do you happen to know where
> DW_OP_GNU_reinterpret is described, I assumed it was part of
> http://www.dwarfstd.org/doc/040408.1.html but it isn't in there.

No, it isn't, I didn't find it anywhere else but in elfutils.  It's not
even in my test binary, only DW_OP_GNU_convert is.  FWIW this is the
e-mail which introduced it to elfutils themselves:

  https://lists.fedorahosted.org/pipermail/elfutils-devel/2011-May/002077.html

Thanks,
PM


More information about the elfutils-devel mailing list