[PATCH] readelf: Decode DW_AT_discr_list block attributes.

2019-05-10 Thread Mark Wielaard
Decode DW_AT_descr_list blocks using the DW_DSC values. This requires knowing the signedness of the discriminant. Which means the attr_callback function needs access to the parent DIE. Pass the whole DIE path, plus the current level. That way the type of the discriminant can be looked up in the var

[Bug tools/24509] eu-readelf does not know how to dissect DW_AT_discr_list

2019-05-10 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24509 Mark Wielaard changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #6 from Mark Wie

Re: [PATCH] readelf: Decode DW_AT_discr_list block attributes.

2019-05-10 Thread Tom Tromey
> "Mark" == Mark Wielaard writes: Mark> Decode DW_AT_descr_list blocks using the DW_DSC values. Mark> This requires knowing the signedness of the discriminant. Mark> Which means the attr_callback function needs access to the Mark> parent DIE. Pass the whole DIE path, plus the current level. M

Re: Dwarf_Op

2019-05-10 Thread Mark Wielaard
On Wed, May 08, 2019 at 06:03:55PM +, Sasha Da Rocha Pinheiro wrote: > About the *ops returned from dwarf_frame_register(): > Is it correct to say that if we don't get a DW_OP_stack_value as the > last operation, the value on top of the stack will always be a > memory address? Meaning you must