Update Ada ptype support for dynamic types
authorTom Tromey <tromey@adacore.com>
Fri, 24 Apr 2020 19:40:31 +0000 (13:40 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 24 Apr 2020 19:40:32 +0000 (13:40 -0600)
commitd656f129ebc7b96db96244d0206fc7fb9af85a65
treeca04689520072c44fa3b230d8e74e9b42129d977
parent7d79de9a4be2d1abb0320c322967f1aad39b1f7d
Update Ada ptype support for dynamic types

The DWARF reader was updated to handle variant parts and some other
selected features for Ada; but the Ada "ptype" code was not touched.
This patch changes the Ada ptype code to handle the new types
properly.

Test cases for this and for some of the other code in this series are
in a separate patch.

gdb/ChangeLog
2020-04-24  Tom Tromey  <tromey@adacore.com>

* ada-typeprint.c (print_choices, print_variant_part)
(print_record_field_types_dynamic): New functions.
(print_record_field_types): Use print_record_field_types_dynamic.
gdb/ChangeLog
gdb/ada-typeprint.c