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/rust-lang.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/rust-lang.c') diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index a590f9d..a0310a0 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -212,7 +212,7 @@ static bool rust_u8_type_p (struct type *type) { return (type->code () == TYPE_CODE_INT - && TYPE_UNSIGNED (type) + && type->is_unsigned () && TYPE_LENGTH (type) == 1); } @@ -223,7 +223,7 @@ rust_chartype_p (struct type *type) { return (type->code () == TYPE_CODE_CHAR && TYPE_LENGTH (type) == 4 - && TYPE_UNSIGNED (type)); + && type->is_unsigned ()); } /* If VALUE represents a trait object pointer, return the underlying @@ -542,7 +542,7 @@ rust_value_print_inner (struct value *val, struct ui_file *stream, case TYPE_CODE_INT: /* Recognize the unit type. */ - if (TYPE_UNSIGNED (type) && TYPE_LENGTH (type) == 0 + if (type->is_unsigned () && TYPE_LENGTH (type) == 0 && type->name () != NULL && strcmp (type->name (), "()") == 0) { fputs_filtered ("()", stream); -- cgit v1.1