aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-07-30 12:07:39 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-09-21 10:53:55 -0400
commit8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (patch)
tree423aae459c642ed5542af312098835612df0ec84 /gdb/stabsread.c
parent0242db993f8ad0a0de16dafc4ebd35bb6190c833 (diff)
downloadgdb-8a50fdcefc44c40d5c4b978f19c22ddfbeb29139.zip
gdb-8a50fdcefc44c40d5c4b978f19c22ddfbeb29139.tar.gz
gdb-8a50fdcefc44c40d5c4b978f19c22ddfbeb29139.tar.bz2
gdb: add type::target_type / type::set_target_type
Add the `target_type` and `set_target_type` methods on `struct type`, in order to remove the `TYPE_TARGET_TYPE` 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. Change-Id: I85ce24d847763badd34fdee3e14b8c8c14cb3161
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index cd6e6a9..3c484ce 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -1717,7 +1717,7 @@ again:
else
{
type->set_target_is_stub (true);
- TYPE_TARGET_TYPE (type) = xtype;
+ type->set_target_type (xtype);
}
}
break;