aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:00 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:00 -0400
commit27e69b7aedcfee8af8fc6ee4f2e99aca2d41daca (patch)
treed092d44a3e9cba662112047179bb295e5c5b3154 /gdb/eval.c
parentd21839680655c071a811de1d7b41f8d7de4fc462 (diff)
downloadgdb-27e69b7aedcfee8af8fc6ee4f2e99aca2d41daca.zip
gdb-27e69b7aedcfee8af8fc6ee4f2e99aca2d41daca.tar.gz
gdb-27e69b7aedcfee8af8fc6ee4f2e99aca2d41daca.tar.bz2
gdb: add type::is_prototyped / type::set_is_prototyped
Add the `is_prototyped` and `set_is_prototyped` methods on `struct type`, in order to remove the `TYPE_PROTOTYPED` 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_prototyped, set_is_prototyped>: New methods. (TYPE_PROTOTYPED): Use type::is_prototyped, change all write call sites to use type::set_is_prototyped. Change-Id: I6ba285250fae413f7c1bf2ffcb5a2cedc8e743da
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 3587dfe..7f9515b 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -673,7 +673,7 @@ fake_method::fake_method (type_instance_flags flags,
--num_types;
/* Caller should have ensured this. */
gdb_assert (num_types == 0);
- TYPE_PROTOTYPED (type) = 1;
+ type->set_is_prototyped (true);
}
}