diff options
author | Joel Brobecker <brobecker@adacore.com> | 2020-11-23 22:03:36 -0500 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2020-11-23 22:03:36 -0500 |
commit | 4afa9fd9b043ea54b750c8bfe73fb5320c6fc683 (patch) | |
tree | dfb28da253ee78c5fa2b392fafd9b167c671e1be /gdb/typeprint.c | |
parent | af619ce989a51864b1c2b8c2eef7c46ffe1ff256 (diff) | |
download | fsf-binutils-gdb-4afa9fd9b043ea54b750c8bfe73fb5320c6fc683.zip fsf-binutils-gdb-4afa9fd9b043ea54b750c8bfe73fb5320c6fc683.tar.gz fsf-binutils-gdb-4afa9fd9b043ea54b750c8bfe73fb5320c6fc683.tar.bz2 |
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.
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r-- | gdb/typeprint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c index a3fc9cc..47019a2 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -637,6 +637,10 @@ print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream) print_type_scalar (TYPE_TARGET_TYPE (type), val, stream); return; + case TYPE_CODE_FIXED_POINT: + print_type_fixed_point (type, stream); + break; + case TYPE_CODE_UNDEF: case TYPE_CODE_PTR: case TYPE_CODE_ARRAY: |