diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:07:57 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:07:57 -0400 |
commit | c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf (patch) | |
tree | c5d25c2c2cd369f74ed393926638302e9da95c02 /gdb/ada-valprint.c | |
parent | 653223d3561b5976d12ade101113af9d08348b8c (diff) | |
download | binutils-c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf.zip binutils-c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf.tar.gz binutils-c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf.tar.bz2 |
gdb: remove TYPE_UNSIGNED
gdb/ChangeLog:
* gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
type::is_unsigned.
Change-Id: I84f76f5cd44ff7294e421d317376a9e476bc8666
Diffstat (limited to 'gdb/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index c61688d..3616711 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -398,7 +398,7 @@ ada_print_scalar (struct type *type, LONGEST val, struct ui_file *stream) break; case TYPE_CODE_INT: - print_longest (stream, TYPE_UNSIGNED (type) ? 'u' : 'd', 0, val); + print_longest (stream, type->is_unsigned () ? 'u' : 'd', 0, val); break; case TYPE_CODE_CHAR: @@ -1129,7 +1129,7 @@ ada_value_print (struct value *val0, struct ui_file *stream, type is indicated by the quoted string anyway. */ if (TYPE_LENGTH (TYPE_TARGET_TYPE (type)) != sizeof (char) || TYPE_TARGET_TYPE (type)->code () != TYPE_CODE_INT - || TYPE_UNSIGNED (TYPE_TARGET_TYPE (type))) + || TYPE_TARGET_TYPE (type)->is_unsigned ()) { fprintf_filtered (stream, "("); type_print (type, "", stream, -1); |