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) <has_no_signedness, set_has_no_signedness>: New methods. (TYPE_NOSIGN): Use type::has_no_signedness, change all write call sites to use type::set_has_no_signedness. Change-Id: I80d8e774316d146fbd814b2928ad5392bada39d5
This commit is contained in:
parent
c6d940a956
commit
15152a54ae
7 changed files with 26 additions and 9 deletions
|
@ -1387,7 +1387,7 @@ basic_type (int bt, struct objfile *objfile)
|
|||
|
||||
case btChar:
|
||||
tp = init_integer_type (objfile, 8, 0, "char");
|
||||
TYPE_NOSIGN (tp) = 1;
|
||||
tp->set_has_no_signedness (true);
|
||||
break;
|
||||
|
||||
case btUChar:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue