aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:07 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:07 -0400
commit22c4c60c865ad3251e28b7ac60a069e20c8a0378 (patch)
tree8354c10d5807aec9608c797e86a64a937482b964 /gdb/gdbtypes.h
parent9cdd0d12cc05495da96559ce80ad5b0467d33417 (diff)
downloadgdb-22c4c60c865ad3251e28b7ac60a069e20c8a0378.zip
gdb-22c4c60c865ad3251e28b7ac60a069e20c8a0378.tar.gz
gdb-22c4c60c865ad3251e28b7ac60a069e20c8a0378.tar.bz2
gdb: remove TYPE_FIXED_INSTANCE
gdb/ChangeLog: * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all uses with type::is_fixed_instance. Change-Id: I57731b5ab44aac7d8896a32b9c7481891baea51a
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 4bd7c34..dcb6914 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -216,18 +216,6 @@ DEF_ENUM_FLAGS_TYPE (enum type_instance_flag_value, type_instance_flags);
#define TYPE_ENDIANITY_NOT_DEFAULT(t) (TYPE_MAIN_TYPE (t)->flag_endianity_not_default)
-/* * The debugging formats (especially STABS) do not contain enough
- information to represent all Ada types---especially those whose
- size depends on dynamic quantities. Therefore, the GNAT Ada
- compiler includes extra information in the form of additional type
- definitions connected by naming conventions. This flag indicates
- that the type is an ordinary (unencoded) GDB type that has been
- created from the necessary run-time information, and does not need
- further interpretation. Optionally marks ordinary, fixed-size GDB
- type. */
-
-#define TYPE_FIXED_INSTANCE(t) ((t)->is_fixed_instance ())
-
/* * Not textual. By default, GDB treats all single byte integers as
characters (or elements of strings) unless this flag is set. */
@@ -1141,6 +1129,16 @@ struct type
this->main_type->m_flag_gnu_ifunc = is_gnu_ifunc;
}
+ /* The debugging formats (especially STABS) do not contain enough
+ information to represent all Ada types---especially those whose
+ size depends on dynamic quantities. Therefore, the GNAT Ada
+ compiler includes extra information in the form of additional type
+ definitions connected by naming conventions. This flag indicates
+ that the type is an ordinary (unencoded) GDB type that has been
+ created from the necessary run-time information, and does not need
+ further interpretation. Optionally marks ordinary, fixed-size GDB
+ type. */
+
bool is_fixed_instance () const
{
return this->main_type->m_flag_fixed_instance;
@@ -1658,7 +1656,7 @@ extern void allocate_gnat_aux_type (struct type *);
#define ADA_TYPE_P(type) \
(TYPE_SPECIFIC_FIELD (type) == TYPE_SPECIFIC_GNAT_STUFF \
|| (TYPE_SPECIFIC_FIELD (type) == TYPE_SPECIFIC_NONE \
- && TYPE_FIXED_INSTANCE (type)))
+ && (type)->is_fixed_instance ()))
#define INIT_FUNC_SPECIFIC(type) \
(TYPE_SPECIFIC_FIELD (type) = TYPE_SPECIFIC_FUNC, \