gdb: remove TYPE_UNSIGNED

gdb/ChangeLog:

	* gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
	type::is_unsigned.

Change-Id: I84f76f5cd44ff7294e421d317376a9e476bc8666
This commit is contained in:
Simon Marchi 2020-09-14 11:07:57 -04:00
parent 653223d356
commit c6d940a956
30 changed files with 88 additions and 86 deletions

View file

@ -1694,7 +1694,7 @@ valpy_int (PyObject *self)
GDB_PY_HANDLE_EXCEPTION (except);
}
if (TYPE_UNSIGNED (type))
if (type->is_unsigned ())
return gdb_py_object_from_ulongest (l).release ();
else
return gdb_py_object_from_longest (l).release ();
@ -1730,7 +1730,7 @@ valpy_long (PyObject *self)
GDB_PY_HANDLE_EXCEPTION (except);
}
if (TYPE_UNSIGNED (type))
if (type->is_unsigned ())
return gdb_py_long_from_ulongest (l);
else
return gdb_py_long_from_longest (l);