2005-02-07 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / gnu-v2-abi.c
index 87f4e9c7226f018febf6ef193ae5f036bfefe2f7..57bc0d8b5304f63987a0d42dc5ff80f51ab2c92c 100644 (file)
@@ -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))
        {
This page took 0.038475 seconds and 4 git commands to generate.