diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c2b5a0511e5..5c3ca8ff05a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-05-05 Joel Brobecker + + * gdbtypes.c (resolve_dynamic_array): Use + create_array_type_with_stride instead of create_array_type. + 2015-04-30 DJ Delorie * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index b2e11772dc7..d91b5d542dc 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -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