diff options
author | Joel Brobecker <brobecker@adacore.com> | 2020-05-15 15:06:42 -0500 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2020-05-15 16:06:42 -0400 |
commit | b2188a06e4583067a503fbc271e110e814890cc1 (patch) | |
tree | 121abc54859cc2e200213193d8a056f53757c827 /gdb/ada-lang.h | |
parent | 86e4e63d7cabb94a80a5ce767f670b65add5a083 (diff) | |
download | gdb-b2188a06e4583067a503fbc271e110e814890cc1.zip gdb-b2188a06e4583067a503fbc271e110e814890cc1.tar.gz gdb-b2188a06e4583067a503fbc271e110e814890cc1.tar.bz2 |
update name of several Ada fixed-point type handling functions
The purpose of this patch is to prepare for the future where
fixed point types become described using standard DWARF info,
rather than GNAT encodings. For that, we rename a number of
routines manipulating Ada fixed point types to make it explicit
from their new names that they rely on the GNAT encodings to work.
This will allow us, when we introduce support for fixed point types
from standard DWARF to use names that are not ambiguous with
the functions that do similar work, but only for GNAT encodings.
gdb/ChangeLog:
* ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
ada_is_fixed_point_type. Update all callers.
(gnat_encoded_fixed_point_delta): Renames ada_delta. Update
all callers.
* ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
Update all callers.
* ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
print_fixed_point_type. Update all callers.
* ada-valprint.c (ada_value_print_num): Replace call to
ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
Diffstat (limited to 'gdb/ada-lang.h')
-rw-r--r-- | gdb/ada-lang.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h index c0a7109..5ba0051 100644 --- a/gdb/ada-lang.h +++ b/gdb/ada-lang.h @@ -281,11 +281,11 @@ extern struct type *ada_aligned_type (struct type *); extern const gdb_byte *ada_aligned_value_addr (struct type *, const gdb_byte *); -extern int ada_is_fixed_point_type (struct type *); +extern int ada_is_gnat_encoded_fixed_point_type (struct type *); extern int ada_is_system_address_type (struct type *); -extern struct value *ada_delta (struct type *); +extern struct value *gnat_encoded_fixed_point_delta (struct type *); extern struct value *ada_scaling_factor (struct type *); |