diff options
author | Paul N. Hilfinger <hilfinger@adacore.com> | 2010-10-04 06:37:54 +0000 |
---|---|---|
committer | Paul N. Hilfinger <hilfinger@adacore.com> | 2010-10-04 06:37:54 +0000 |
commit | 83e3a93c83891799c35d89a0de89c2d2b8bb556a (patch) | |
tree | 3bbd0bf508c279e8fb0ee29d45a147e60bfc7bd4 /bfd | |
parent | 73589123891e1c5ae9ee9c6e359a2a37133200de (diff) | |
download | gdb-83e3a93c83891799c35d89a0de89c2d2b8bb556a.zip gdb-83e3a93c83891799c35d89a0de89c2d2b8bb556a.tar.gz gdb-83e3a93c83891799c35d89a0de89c2d2b8bb556a.tar.bz2 |
Have ptype handle types declared pragma Unchecked_Variants.
When a type is marked with pragma Unchecked_Variants, ptype did not print
variants having a single component, since the compiler produces incorrect
debugging output for such cases. With this patch, we special-case these
components so that they print.
Changelog:
* gdb/ada-typeprint.c (print_selected_record_field_types): New function,
incorporating and generalizing print_record_field_types.
(print_record_field_types): Change return value and update comment.
Re-implement using print_selected_record_field_types.
(print_choices): Print "=>" here.
Handle case of unencoded variant branch.
(print_variant_clauses): Reformat comment.
Special-case unencoded variant branch.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions