[PATCH] Select variant field when printing variant (no-tn-check)
Tom Tromey
tromey@adacore.com
Mon Apr 6 18:58:31 GMT 2020
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> When I updated the Ada variant-printing code to be value-based, I
Tom> neglected a couple of issues. First, print_variant_part must first
Tom> extract the variant field before finding the active component; second,
Tom> print_field_values should pass in the field value as the outer value
Tom> when recursing.
Tom> This patch fixes both of these issues.
Tom> gdb/ChangeLog
Tom> 2020-03-30 Tom Tromey <tromey@adacore.com>
Tom> * ada-valprint.c (print_variant_part): Extract the variant field.
Tom> (print_field_values): Use the field as the outer value when
Tom> recursing.
I'm checking this in now.
Tom
More information about the Gdb-patches
mailing list