]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add type::is_unsigned / type::set_is_unsigned
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 14 Sep 2020 15:07:56 +0000 (11:07 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 14 Sep 2020 15:07:56 +0000 (11:07 -0400)
commit653223d3561b5976d12ade101113af9d08348b8c
treed91acbd802d4b2500c76e83ac6306471367154d2
parent55ea94da360700cd3d96cacb7957904692913c45
gdb: add type::is_unsigned / type::set_is_unsigned

Add the `is_unsigned` and `set_is_unsigned` methods on `struct type`, in
order to remove the `TYPE_UNSIGNED` macro.  In this patch, the
`TYPE_UNSIGNED` macro is changed to use `type::is_unsigned`, so all the
call sites that are used to set this property on a type are changed to
use the new method.  The next patch will remove the macro completely.

gdb/ChangeLog:

* gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
methods.
(TYPE_UNSIGNED): Use type::is_unsigned.  Change all write call
sites to use type::set_is_unsigned.

Change-Id: Ib09ddce84eda160a801a8f288cccf61c8ef136bc
gdb/ChangeLog
gdb/ada-valprint.c
gdb/coffread.c
gdb/dwarf2/read.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/mdebugread.c
gdb/stabsread.c
gdb/target-descriptions.c
gdb/windows-tdep.c