Add TYPE_CODE_FIXED_POINT handling in print_type_scalar
authorJoel Brobecker <brobecker@adacore.com>
Tue, 24 Nov 2020 03:03:36 +0000 (22:03 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Tue, 24 Nov 2020 03:03:36 +0000 (22:03 -0500)
commit4afa9fd9b043ea54b750c8bfe73fb5320c6fc683
treedfb28da253ee78c5fa2b392fafd9b167c671e1be
parentaf619ce989a51864b1c2b8c2eef7c46ffe1ff256
Add TYPE_CODE_FIXED_POINT handling in print_type_scalar

This commit enhances print_type_scalar to include support for
TYPE_CODE_FIXED_POINT. This way, any language falling back to
this function for printing the description of some types
also gets basic ptype support for fixed point types as well.

This fixes a couple of XFAILs in gdb.dwarf2/dw2-fixed-point.exp.

gdb/ChangeLog:

        * typeprint.c (print_type_scalar): Add handling of
        TYPE_CODE_FIXED_POINT.

gdb/testsuite/ChangeLog:

        * gdb.dwarf2/dw2-fixed-point.exp: Fix the expected output of
        the "ptype pck__fp1_range_var" test for the module-2 and pascal
        languages.  Remove the associated setup_xfail.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp
gdb/typeprint.c