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/rust-lang.c | |
parent | 653223d3561b5976d12ade101113af9d08348b8c (diff) | |
download | gdb-c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf.zip gdb-c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf.tar.gz gdb-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/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |