diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:08:03 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:08:03 -0400 |
commit | 9baccff6ae259e74ba1f172008a377dbe2107318 (patch) | |
tree | 30a6c58553f6d58939c3907b754458d0fb51db78 /gdb/dwarf2 | |
parent | bd63c870088388fc55efbf50f2dfc0592fe874e5 (diff) | |
download | gdb-9baccff6ae259e74ba1f172008a377dbe2107318.zip gdb-9baccff6ae259e74ba1f172008a377dbe2107318.tar.gz gdb-9baccff6ae259e74ba1f172008a377dbe2107318.tar.bz2 |
gdb: add type::stub_is_supported / type::set_stub_is_supported
Add the `stub_is_supported` and `set_stub_is_supported` methods on `struct type`, in
order to remove the `TYPE_STUB_SUPPORTED` 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) <stub_is_supported, set_stub_is_supported>: New methods.
(TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
use type::set_stub_is_supported.
Change-Id: I4dfecf2b5df9c2b7bb8db1e9252082140adf3028
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 45fdaf8..410e4c8 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -16084,7 +16084,7 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu) type->set_is_stub (true); } else - TYPE_STUB_SUPPORTED (type) = 1; + type->set_stub_is_supported (true); if (die_is_declaration (die, cu)) type->set_is_stub (true); |