2009-05-27 Tom Tromey <tromey@redhat.com>
[deliverable/binutils-gdb.git] / gdb / c-valprint.c
index cfdf2c05cc19bb2f95ad918bb0eda2790c034690..3433da22f65737dc2f932a657796357fb3127bbf 100644 (file)
@@ -668,7 +668,7 @@ c_value_print (struct value *val, struct ui_file *stream,
          /* Print out object: enclosing type is same as real_type if full */
          return val_print (value_enclosing_type (val),
                            value_contents_all (val), 0,
-                           VALUE_ADDRESS (val), stream, 0,
+                           value_address (val), stream, 0,
                            &opts, current_language);
           /* Note: When we look up RTTI entries, we don't get any information on
              const or volatile attributes */
@@ -680,7 +680,7 @@ c_value_print (struct value *val, struct ui_file *stream,
                            TYPE_NAME (value_enclosing_type (val)));
          return val_print (value_enclosing_type (val),
                            value_contents_all (val), 0,
-                           VALUE_ADDRESS (val), stream, 0,
+                           value_address (val), stream, 0,
                            &opts, current_language);
        }
       /* Otherwise, we end up at the return outside this "if" */
@@ -688,6 +688,6 @@ c_value_print (struct value *val, struct ui_file *stream,
 
   return val_print (val_type, value_contents_all (val),
                    value_embedded_offset (val),
-                   VALUE_ADDRESS (val) + value_offset (val),
+                   value_address (val),
                    stream, 0, &opts, current_language);
 }
This page took 0.025886 seconds and 4 git commands to generate.