* python/py-autoload.c (print_script): Print "Missing" instead of
[deliverable/binutils-gdb.git] / gdb / d-valprint.c
index 9577a2efb9718e8e1e560e36236ba6f0bd8a1af8..e8430995e9996a7009f03621f4a53944070758e3 100644 (file)
@@ -45,8 +45,7 @@ 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;
+      struct value *ival;
       int length;
 
       length = unpack_field_as_long (type, valaddr + embedded_offset, 0);
@@ -59,11 +58,12 @@ dynamic_array_type (struct type *type, const gdb_byte *valaddr,
       true_type = check_typedef (elttype);
 
       true_type = lookup_array_range_type (true_type, 0, length - 1);
-      val = value_at (true_type, addr);
-      ptraddr = value_contents (val);
+      ival = value_at (true_type, addr);
 
-      return d_val_print (true_type, ptraddr, 0, addr, stream, recurse + 1,
-                         NULL, options);
+      return d_val_print (true_type,
+                         value_contents_for_printing (ival),
+                         value_embedded_offset (ival), addr,
+                         stream, recurse + 1, ival, options);
     }
   return -1;
 }
This page took 0.023971 seconds and 4 git commands to generate.