mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* ada-lang.c (assign_component): Use platform-specific integer type
instead of builtin_type_int32 type. (ada_evaluate_subexp) [OP_ATR_SIZE]: Likewise. * ax-gdb.c (gen_expr) [UNOP_NEG]: Use platform-specific integer type instead of builtin_type_int8 type. * valarith.c (value_x_unop): Likewise. * python/python-value.c (valpy_absolute): Avoid reference to builtin_type_int8 type. * eval.c (evaluate_subexp_standard): Use platform-specific integer type instead of builtin_type_int8 as EVAL_SKIP return value type. * ada-lang.c (ada_evaluate_subexp): Likewise. * jv-lang.c (evaluate_subexp_java): Likewise. * m2-lang.c (evaluate_subexp_modula2): Likewise. * scm-lang.c (evaluate_exp): Likewise. * value.h (value_bitstring): Add INDEX_TYPE argument. * valops.c (value_bitstring): Add INDEX_TYPE argument, use it instead of builtin_type_int32 as base range type. * eval.c (evaluate_subexp_standard): Update value_bitstring call.
This commit is contained in:
@@ -805,7 +805,8 @@ evaluate_subexp_standard (struct type *expect_type,
|
||||
+= 3 + BYTES_TO_EXP_ELEM ((tem + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT);
|
||||
if (noside == EVAL_SKIP)
|
||||
goto nosideret;
|
||||
return value_bitstring (&exp->elts[pc + 2].string, tem);
|
||||
return value_bitstring (&exp->elts[pc + 2].string, tem,
|
||||
builtin_type (exp->gdbarch)->builtin_int);
|
||||
break;
|
||||
|
||||
case OP_ARRAY:
|
||||
@@ -2515,7 +2516,7 @@ GDB does not (yet) know how to evaluate that kind of expression"));
|
||||
}
|
||||
|
||||
nosideret:
|
||||
return value_from_longest (builtin_type_int8, (LONGEST) 1);
|
||||
return value_from_longest (builtin_type (exp->gdbarch)->builtin_int, 1);
|
||||
}
|
||||
|
||||
/* Evaluate a subexpression of EXP, at index *POS,
|
||||
|
||||
Reference in New Issue
Block a user