preserve the bit stride when resolving an array type.
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index b2e11772dc7bfea6cf97e961e822e1dfec574874..d91b5d542dc48b1915ed07f24b04b89f97107bd3 100644 (file)
@@ -1898,9 +1898,9 @@ resolve_dynamic_array (struct type *type,
   else
     elt_type = TYPE_TARGET_TYPE (type);
 
-  return create_array_type (copy_type (type),
-                           elt_type,
-                           range_type);
+  return create_array_type_with_stride (copy_type (type),
+                                       elt_type, range_type,
+                                       TYPE_FIELD_BITSIZE (type, 0));
 }
 
 /* Resolve dynamic bounds of members of the union TYPE to static
This page took 0.024144 seconds and 4 git commands to generate.