diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a5945bdc68c..326113a12b8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-02-17 Joel Brobecker + + * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as + integers and enumeration types. + 2019-02-17 Joel Brobecker * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index d1ca304a924..675878337b3 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -3003,6 +3003,7 @@ type_align (struct type *type) case TYPE_CODE_FUNC: case TYPE_CODE_FLAGS: case TYPE_CODE_INT: + case TYPE_CODE_RANGE: case TYPE_CODE_FLT: case TYPE_CODE_ENUM: case TYPE_CODE_REF: @@ -3047,7 +3048,6 @@ type_align (struct type *type) break; case TYPE_CODE_SET: - case TYPE_CODE_RANGE: case TYPE_CODE_STRING: /* Not sure what to do here, and these can't appear in C or C++ anyway. */