From b2188a06e4583067a503fbc271e110e814890cc1 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 15 May 2020 15:06:42 -0500 Subject: 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. --- gdb/ada-lang.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/ada-lang.h') 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 *); -- cgit v1.1