forked from Imagelibrary/binutils-gdb
* valarith.c (value_subscript): Copy VALUE_FRAME_ID.
(value_subscripted_rvalue): Likewise. * valops.c (search_struct_field, value_slice): Likewise.
This commit is contained in:
@@ -239,6 +239,7 @@ value_subscript (struct value *array, struct value *idx)
|
||||
if (VALUE_LVAL (array) == lval_internalvar)
|
||||
VALUE_LVAL (v) = lval_internalvar_component;
|
||||
VALUE_ADDRESS (v) = VALUE_ADDRESS (array);
|
||||
VALUE_FRAME_ID (v) = VALUE_FRAME_ID (array);
|
||||
v->offset = offset + value_offset (array);
|
||||
return v;
|
||||
}
|
||||
@@ -278,6 +279,7 @@ value_subscripted_rvalue (struct value *array, struct value *idx, int lowerbound
|
||||
VALUE_LVAL (v) = VALUE_LVAL (array);
|
||||
VALUE_ADDRESS (v) = VALUE_ADDRESS (array);
|
||||
VALUE_REGNUM (v) = VALUE_REGNUM (array);
|
||||
VALUE_FRAME_ID (v) = VALUE_FRAME_ID (array);
|
||||
v->offset = value_offset (array) + elt_offs;
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user