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/jv-valprint.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/jv-valprint.c')
-rw-r--r-- | gdb/jv-valprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c index 2d20805..51ba6fb 100644 --- a/gdb/jv-valprint.c +++ b/gdb/jv-valprint.c @@ -163,15 +163,15 @@ java_value_print (struct value *val, struct ui_file *stream, int format, else { set_value_lazy (v, 1); - v->offset = 0; + set_value_offset (v, 0); } - next_v->offset = value_offset (v); + set_value_offset (next_v, value_offset (v)); for (reps = 1; i + reps < length; reps++) { set_value_lazy (next_v, 1); - next_v->offset += TYPE_LENGTH (el_type); + set_value_offset (next_v, value_offset (next_v) + TYPE_LENGTH (el_type)); if (memcmp (value_contents (v), value_contents (next_v), TYPE_LENGTH (el_type)) != 0) break; |