diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-08 02:29:18 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-08 02:29:18 +0000 |
commit | f5cf64a7277fc62fa3243371962c81fe198db64d (patch) | |
tree | f0faa0e7b611ab4e86dc85a66cf24917e2effd2c /gdb/valarith.c | |
parent | 17cf0ecde3a59551f7792b456e7533687f3ec8d1 (diff) | |
download | gdb-f5cf64a7277fc62fa3243371962c81fe198db64d.zip gdb-f5cf64a7277fc62fa3243371962c81fe198db64d.tar.gz gdb-f5cf64a7277fc62fa3243371962c81fe198db64d.tar.bz2 |
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.h (set_value_offset): Declare.
* value.c (set_value_offset): Declare.
* gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
* findvar.c: Update.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r-- | gdb/valarith.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index 9bfe26b..6447b48 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -240,7 +240,7 @@ value_subscript (struct value *array, struct value *idx) 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); + set_value_offset (v, offset + value_offset (array)); return v; } @@ -281,7 +281,7 @@ value_subscripted_rvalue (struct value *array, struct value *idx, int lowerbound 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; + set_value_offset (v, value_offset (array) + elt_offs); return v; } |