aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-11-21 19:52:13 +0000
committerDaniel Jacobowitz <drow@false.org>2004-11-21 19:52:13 +0000
commit65d3800afdbb924961d55980838aafe9c84962e6 (patch)
tree26be512028846f669f395ac7835a905e1c0c683c /gdb/valarith.c
parent2c4a536d5dea77889ddeeddd194758f34ce9dd8a (diff)
downloadfsf-binutils-gdb-65d3800afdbb924961d55980838aafe9c84962e6.zip
fsf-binutils-gdb-65d3800afdbb924961d55980838aafe9c84962e6.tar.gz
fsf-binutils-gdb-65d3800afdbb924961d55980838aafe9c84962e6.tar.bz2
* valarith.c (value_subscript): Copy VALUE_FRAME_ID.
(value_subscripted_rvalue): Likewise. * valops.c (search_struct_field, value_slice): Likewise.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index ea93ea1..00f20e1 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -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;
}