aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-03-20 08:24:16 -0600
committerTom Tromey <tromey@adacore.com>2020-03-20 08:28:11 -0600
commit70304be939301a91dade0dc7d4234c081372bd24 (patch)
treecb9db6c1bc3941bd3fb31ff6f41f9c47258b5a05 /gdb/symmisc.c
parent9faa006d11a5e08264a007463435f84b77864c9c (diff)
downloadgdb-70304be939301a91dade0dc7d4234c081372bd24.zip
gdb-70304be939301a91dade0dc7d4234c081372bd24.tar.gz
gdb-70304be939301a91dade0dc7d4234c081372bd24.tar.bz2
Fix Ada val_print removal regression
The removal of val_print caused a regression in the Ada code. In one scenario, a variant type would not be properly printed, because the address of a component was lost. This patch fixes the bug by changing this API to be value-based. This is cleaner and fixes the bug as a side effect. gdb/ChangeLog 2020-03-20 Tom Tromey <tromey@adacore.com> * ada-valprint.c (print_variant_part): Remove parameters; switch to value-based API. (print_field_values): Likewise. (ada_val_print_struct_union): Likewise. (ada_value_print_1): Update. gdb/testsuite/ChangeLog 2020-03-20 Tom Tromey <tromey@adacore.com> * gdb.ada/sub_variant/subv.adb: New file. * gdb.ada/sub_variant.exp: New file.
Diffstat (limited to 'gdb/symmisc.c')
0 files changed, 0 insertions, 0 deletions