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

2019-05-14 Thread Mark Wielaard
On Fri, May 10, 2019 at 11:48:32AM -0600, Tom Tromey wrote: > > "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 th

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

[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