aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:07:58 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:07:58 -0400
commitb4b73759537ae830d8b48834b419b095561d4d4a (patch)
tree75c131b31fe269d8878e8fba12d2b58bfd668ac5 /gdb/ada-lang.c
parent20ce41238d912c3ced2870501f0c45cf7a03de92 (diff)
downloadgdb-b4b73759537ae830d8b48834b419b095561d4d4a.zip
gdb-b4b73759537ae830d8b48834b419b095561d4d4a.tar.gz
gdb-b4b73759537ae830d8b48834b419b095561d4d4a.tar.bz2
gdb: add type::is_stub / type::set_is_stub
Add the `is_stub` and `set_is_stub` methods on `struct type`, in order to remove the `TYPE_STUB` macro. In this patch, the macro is changed to use the getter, so all the call sites of the macro that are used as a setter are changed to use the setter method directly. The next patch will remove the macro completely. gdb/ChangeLog: * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods. (TYPE_STUB): Use type::is_stub, change all write call sites to use type::set_is_stub. Change-Id: Ie935e8fe72c908afd8718411e83f4ff00c386bf3
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index c014d1c..c126f98 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -8604,7 +8604,7 @@ ada_to_fixed_type_1 (struct type *type, const gdb_byte *valaddr,
Consider the case of an array, for instance, where the size
of the array is computed from the number of elements in
our array multiplied by the size of its element. */
- TYPE_STUB (fixed_record_type) = 0;
+ fixed_record_type->set_is_stub (false);
}
}
return fixed_record_type;