[PATCH] readelf: Decode DW_AT_discr_list block attributes.

Tom Tromey tom@tromey.com
Fri May 10 17:48:00 GMT 2019


>>>>> "Mark" == Mark Wielaard <mark@klomp.org> 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.
Mark> That way the type of the discriminant can be looked up in
Mark> the variant_part (parent) DIE of the variant DIE (which has
Mark> the discr_list attribute).

Mark> Add a testcase using both signed and unsigned discriminants.

Mark> https://sourceware.org/bugzilla/show_bug.cgi?id=24509

Thank you for doing this.

Tom



More information about the Elfutils-devel mailing list