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/gnu-v2-abi.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/gnu-v2-abi.c')
-rw-r--r-- | gdb/gnu-v2-abi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index 87f4e9c..57bc0d8 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -162,7 +162,7 @@ gnuv2_virtual_fn_field (struct value **arg1p, struct fn_field * f, int j, if (TYPE_CODE (entry_type) == TYPE_CODE_STRUCT) { /* Move the `this' pointer according to the virtual function table. */ - arg1->offset += value_as_long (value_field (entry, 0)); + set_value_offset (arg1, value_offset (arg1) + value_as_long (value_field (entry, 0))); if (!value_lazy (arg1)) { |