aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile/scm-value.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:07:57 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:07:57 -0400
commitc6d940a9569deb4a89a5628caa78b1ccfcfd2bdf (patch)
treec5d25c2c2cd369f74ed393926638302e9da95c02 /gdb/guile/scm-value.c
parent653223d3561b5976d12ade101113af9d08348b8c (diff)
downloadbinutils-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/guile/scm-value.c')
-rw-r--r--gdb/guile/scm-value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c
index c4d4045..ae7937c 100644
--- a/gdb/guile/scm-value.c
+++ b/gdb/guile/scm-value.c
@@ -888,7 +888,7 @@ gdbscm_value_to_integer (SCM self)
}
GDBSCM_HANDLE_GDB_EXCEPTION (exc);
- if (TYPE_UNSIGNED (type))
+ if (type->is_unsigned ())
return gdbscm_scm_from_ulongest (l);
else
return gdbscm_scm_from_longest (l);
@@ -930,7 +930,7 @@ gdbscm_value_to_real (SCM self)
d = target_float_to_host_double (value_contents (value), type);
check = value_from_host_double (type, d);
}
- else if (TYPE_UNSIGNED (type))
+ else if (type->is_unsigned ())
{
d = (ULONGEST) value_as_long (value);
check = value_from_ulongest (type, (ULONGEST) d);