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:
parent
653223d356
commit
c6d940a956
30 changed files with 88 additions and 86 deletions
|
@ -462,7 +462,7 @@ value_cast (struct type *type, struct value *arg2)
|
|||
}
|
||||
|
||||
/* The only option left is an integral type. */
|
||||
if (TYPE_UNSIGNED (type2))
|
||||
if (type2->is_unsigned ())
|
||||
return value_from_ulongest (to_type, value_as_long (arg2));
|
||||
else
|
||||
return value_from_longest (to_type, value_as_long (arg2));
|
||||
|
@ -1230,7 +1230,7 @@ value_assign (struct value *toval, struct value *fromval)
|
|||
LONGEST valmask = (((ULONGEST) 1) << value_bitsize (toval)) - 1;
|
||||
|
||||
fieldval &= valmask;
|
||||
if (!TYPE_UNSIGNED (type)
|
||||
if (!type->is_unsigned ()
|
||||
&& (fieldval & (valmask ^ (valmask >> 1))))
|
||||
fieldval |= ~valmask;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue