2011-01-24 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / d-valprint.c
index 9577a2efb9718e8e1e560e36236ba6f0bd8a1af8..969cfe2d6a9414322690be6c7f12140587c7e3c5 100644 (file)
@@ -45,7 +45,6 @@ dynamic_array_type (struct type *type, const gdb_byte *valaddr,
       struct type *elttype;
       struct type *true_type;
       struct type *ptr_type;
-      const gdb_byte *ptraddr;
       struct value *val;
       int length;
 
@@ -60,10 +59,11 @@ dynamic_array_type (struct type *type, const gdb_byte *valaddr,
 
       true_type = lookup_array_range_type (true_type, 0, length - 1);
       val = value_at (true_type, addr);
-      ptraddr = value_contents (val);
 
-      return d_val_print (true_type, ptraddr, 0, addr, stream, recurse + 1,
-                         NULL, options);
+      return d_val_print (true_type,
+                         value_contents_for_printing (val),
+                         value_embedded_offset (val), addr,
+                         stream, recurse + 1, val, options);
     }
   return -1;
 }
This page took 0.024073 seconds and 4 git commands to generate.