From c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 14 Sep 2020 11:07:57 -0400 Subject: gdb: remove TYPE_UNSIGNED gdb/ChangeLog: * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with type::is_unsigned. Change-Id: I84f76f5cd44ff7294e421d317376a9e476bc8666 --- gdb/dwarf2/expr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/dwarf2/expr.c') diff --git a/gdb/dwarf2/expr.c b/gdb/dwarf2/expr.c index 9bf7413..ab511d5 100644 --- a/gdb/dwarf2/expr.c +++ b/gdb/dwarf2/expr.c @@ -366,7 +366,7 @@ base_types_equal_p (struct type *t1, struct type *t2) { if (t1->code () != t2->code ()) return 0; - if (TYPE_UNSIGNED (t1) != TYPE_UNSIGNED (t2)) + if (t1->is_unsigned () != t2->is_unsigned ()) return 0; return TYPE_LENGTH (t1) == TYPE_LENGTH (t2); } @@ -1087,7 +1087,7 @@ dwarf_expr_context::execute_stack_op (const gdb_byte *op_ptr, case DW_OP_shr: dwarf_require_integral (value_type (first)); dwarf_require_integral (value_type (second)); - if (!TYPE_UNSIGNED (value_type (first))) + if (!value_type (first)->is_unsigned ()) { struct type *utype = get_unsigned_type (this->gdbarch, value_type (first)); @@ -1104,7 +1104,7 @@ dwarf_expr_context::execute_stack_op (const gdb_byte *op_ptr, case DW_OP_shra: dwarf_require_integral (value_type (first)); dwarf_require_integral (value_type (second)); - if (TYPE_UNSIGNED (value_type (first))) + if (value_type (first)->is_unsigned ()) { struct type *stype = get_signed_type (this->gdbarch, value_type (first)); -- cgit v1.1