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/valops.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/valops.c')
-rw-r--r-- | gdb/valops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index de1b1a7..754f801 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1309,7 +1309,7 @@ search_struct_field (char *name, struct value *arg1, int offset, VALUE_LVAL (v2) = VALUE_LVAL (arg1); VALUE_ADDRESS (v2) = VALUE_ADDRESS (arg1); VALUE_FRAME_ID (v2) = VALUE_FRAME_ID (arg1); - v2->offset = value_offset (arg1) + boffset; + set_value_offset (v2, value_offset (arg1) + boffset); if (value_lazy (arg1)) set_value_lazy (v2, 1); else @@ -2775,7 +2775,7 @@ value_slice (struct value *array, int lowbound, int length) VALUE_LVAL (slice) = VALUE_LVAL (array); VALUE_ADDRESS (slice) = VALUE_ADDRESS (array); VALUE_FRAME_ID (slice) = VALUE_FRAME_ID (array); - slice->offset = value_offset (array) + offset; + set_value_offset (slice, value_offset (array) + offset); } return slice; } |