From 15152a54aebbd4eba6151b20333ba48ccfd703c5 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 14 Sep 2020 11:07:57 -0400 Subject: gdb: add type::has_no_signedness / type::set_has_no_signedness Add the `has_no_signedness` and `set_has_no_signednes` methods on `struct type`, in order to remove the `TYPE_NOSIGN` 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) : New methods. (TYPE_NOSIGN): Use type::has_no_signedness, change all write call sites to use type::set_has_no_signedness. Change-Id: I80d8e774316d146fbd814b2928ad5392bada39d5 --- gdb/ctfread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ctfread.c') diff --git a/gdb/ctfread.c b/gdb/ctfread.c index 5b6d731..14f6404 100644 --- a/gdb/ctfread.c +++ b/gdb/ctfread.c @@ -566,7 +566,7 @@ read_base_type (struct ctf_context *ccp, ctf_id_t tid) } if (name != NULL && strcmp (name, "char") == 0) - TYPE_NOSIGN (type) = 1; + type->set_has_no_signedness (true); return set_tid_type (of, tid, type); } -- cgit v1.1