forked from Imagelibrary/binutils-gdb
* value.h (value_subscript, value_subscripted_rvalue,
value_bitstring_subscript, value_ptradd): Use LONGEST instead of value as type of the index argument. (value_ptrsub): Remove. * valarith.c (value_subscript, value_subscripted_rvalue, value_bitstring_subscript, value_ptradd): Use LONGEST instead of value as type of the index argument. (value_ptrsub): Remove. * wrapper.h (gdb_value_subscript): Use LONGEST instead of value as type of the index argument. * wrapper.c (gdb_value_subscript): Likewise. Update calls to gdb_value_subscript, value_subscript, value_subscripted_rvalue, value_bitstring_subscript and value_ptradd to use LONGEST instead of value as index argument type. Use value_ptradd instead of value_ptrsub. * ada-lang.c (ada_value_subscript, ada_value_ptr_subscript, ada_tag_name_2): Update. * ada-tasks.c (read_atcb): Update. * eval.c (evaluate_subexp_standard): Update. * valarith.c (value_subscript): Update. * gnu-v2-abi.c (gnuv2_virtual_fn_field): Update. * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset, gnuv3_method_ptr_to_value): Update. * jv-lang.c (evaluate_subexp_java): Update. * m2-lang.c (evaluate_subexp_modula2): Update. * python/python-value.c (valpy_getitem, valpy_binop): Update. * wrapper.c (gdb_value_subscript): Update. * varobj.c (c_describe_child): Update.
This commit is contained in:
11
gdb/value.h
11
gdb/value.h
@@ -394,9 +394,7 @@ extern struct value *value_concat (struct value *arg1, struct value *arg2);
|
||||
extern struct value *value_binop (struct value *arg1, struct value *arg2,
|
||||
enum exp_opcode op);
|
||||
|
||||
extern struct value *value_ptradd (struct value *arg1, struct value *arg2);
|
||||
|
||||
extern struct value *value_ptrsub (struct value *arg1, struct value *arg2);
|
||||
extern struct value *value_ptradd (struct value *arg1, LONGEST arg2);
|
||||
|
||||
extern LONGEST value_ptrdiff (struct value *arg1, struct value *arg2);
|
||||
|
||||
@@ -468,11 +466,11 @@ extern struct value *value_one (struct type *type, enum lval_type lv);
|
||||
|
||||
extern struct value *value_repeat (struct value *arg1, int count);
|
||||
|
||||
extern struct value *value_subscript (struct value *array, struct value *idx);
|
||||
extern struct value *value_subscript (struct value *array, LONGEST index);
|
||||
|
||||
extern struct value *value_bitstring_subscript (struct type *type,
|
||||
struct value *bitstring,
|
||||
struct value *idx);
|
||||
LONGEST index);
|
||||
|
||||
extern struct value *register_value_being_returned (struct type *valtype,
|
||||
struct regcache *retbuf);
|
||||
@@ -666,7 +664,8 @@ extern struct value *value_allocate_space_in_inferior (int);
|
||||
|
||||
extern struct value *value_of_local (const char *name, int complain);
|
||||
|
||||
extern struct value * value_subscripted_rvalue (struct value *array, struct value *idx, int lowerbound);
|
||||
extern struct value *value_subscripted_rvalue (struct value *array,
|
||||
LONGEST index, int lowerbound);
|
||||
|
||||
/* User function handler. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user