[RFA v2 4/4] Handle DW_TAG_variant_part and DW_TAG_variant

Tom Tromey tom@tromey.com
Mon Feb 26 16:16:00 GMT 2018


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

>> 2018-02-22  Tom Tromey  <tom@tromey.com>
>> 
>> * dwarf2read.c (struct variant_field): New.
>> (struct nextfield) <variant>: New field.
>> (dwarf2_add_field): Handle DW_TAG_variant_part.
>> (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
>> discriminated union.

Joel> Looks good to me, Tom. Thanks!

Thanks for the reviews.  I've updated the patches.  Patch #4 needed a
minor adjustment to the new complaints to account for the recent 64-bit
sect_offset change.

Tom



More information about the Gdb-patches mailing list