diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:07:59 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:07:59 -0400 |
commit | 8f53807e5c957fb947fb8d61fc2583e2dcbd6f06 (patch) | |
tree | 649228e0a30a2999240fd9de4691f72a259dc536 /gdb/dwarf2 | |
parent | e46d3488de137cd5a01377513ff49e32595456af (diff) | |
download | gdb-8f53807e5c957fb947fb8d61fc2583e2dcbd6f06.zip gdb-8f53807e5c957fb947fb8d61fc2583e2dcbd6f06.tar.gz gdb-8f53807e5c957fb947fb8d61fc2583e2dcbd6f06.tar.bz2 |
gdb: add type::target_is_stub / type::set_target_is_stub
Add the `target_is_stub` and `set_target_is_stub` methods on `struct
type`, in order to remove the `TYPE_TARGET_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) <target_is_stub, set_target_is_stub>:
New methods.
(TYPE_TARGET_STUB): Use type::is_stub, change all write call
sites to use type::set_target_is_stub.
Change-Id: I9c71a89adc7ae8d018db9ee156f41c623be0484a
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 b935833..5f02acc 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -17795,7 +17795,7 @@ read_typedef (struct die_info *die, struct dwarf2_cu *cu) name = dwarf2_full_name (NULL, die, cu); this_type = init_type (objfile, TYPE_CODE_TYPEDEF, 0, name); - TYPE_TARGET_STUB (this_type) = 1; + this_type->set_target_is_stub (true); set_die_type (die, this_type, cu); target_type = die_type (die, cu); if (target_type != this_type) |