summaryrefslogtreecommitdiff
path: root/gdb/gnu-v2-abi.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-08 02:29:18 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-08 02:29:18 +0000
commit17321ecb308bf7c08205269ed7b6c590831d35f0 (patch)
tree308cb72fe23783a62f6a5e58d1bbb03070821904 /gdb/gnu-v2-abi.c
parenta4f858ed554bed8ce806e478552ba4a4781224a6 (diff)
downloadgdb-17321ecb308bf7c08205269ed7b6c590831d35f0.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c
index 87f4e9c7226..57bc0d8b530 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))
{