Add ptype support for DWARF-based fixed-point types
authorJoel Brobecker <brobecker@adacore.com>
Sun, 15 Nov 2020 08:16:01 +0000 (03:16 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Sun, 15 Nov 2020 08:16:01 +0000 (03:16 -0500)
commit0c9150e4de689066b6d7faf326535f573bd29f07
tree62924148c20209d711a6e501d10f787a6db4ffb1
parentb26daff97cd885640e23229a3d164cd9d93c49ef
Add ptype support for DWARF-based fixed-point types

Note that the ptype information printed for types described
via pure DWARF debug info is slightly less informative as
the one printed when the information is encoded in the type's
name, via the GNAT encoding. As a result, the output in
the case of DWARF-described fixed point types is slightly
different. In pratice, this is no real loss because the information
not available in DWARF has no bearing on how the type is actually
stored in memory.

gdb/ChangeLog:

        * ada-typeprint.c (ada_print_type): Add handing of fixed-point
        range types.
        * c-typeprint.c (c_type_print_varspec_prefix)
        (c_type_print_varspec_suffix, c_type_print_base_1): Add
        TYPE_CODE_FIXED_POINT handling.
        * p-typeprint.c (pascal_type_print_varspec_prefix)
        (pascal_type_print_varspec_suffix): Likewise.
        * typeprint.c (print_type_fixed_point): New function.
        * typeprint.h (print_type_fixed_point): Add declaration.

gdb/testsuite/ChangeLog:

        * gdb.ada/fixed_points.exp: Add ptype tests.
        * gdb.dwarf2/dw2-fixed-point.exp: Likewise.
gdb/ChangeLog
gdb/ada-typeprint.c
gdb/c-typeprint.c
gdb/p-typeprint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/fixed_points.exp
gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp
gdb/typeprint.c
gdb/typeprint.h
This page took 0.025192 seconds and 4 git commands to generate.