| Index: gdb/m2-typeprint.c
|
| diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c
|
| index 9735d7f75b6c94aca1d40e218560ff1b31e64707..fb3d49c6de1808e9256962bf5554ade2745e2e4a 100644
|
| --- a/gdb/m2-typeprint.c
|
| +++ b/gdb/m2-typeprint.c
|
| @@ -607,10 +607,11 @@ m2_enum (struct type *type, struct ui_file *stream, int show, int level)
|
| fprintf_filtered (stream, ", ");
|
| wrap_here (" ");
|
| fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
|
| - if (lastval != TYPE_FIELD_BITPOS (type, i))
|
| + if (lastval != TYPE_FIELD_ENUMVAL (type, i))
|
| {
|
| - fprintf_filtered (stream, " = %d", TYPE_FIELD_BITPOS (type, i));
|
| - lastval = TYPE_FIELD_BITPOS (type, i);
|
| + fprintf_filtered (stream, " = %s",
|
| + plongest (TYPE_FIELD_ENUMVAL (type, i)));
|
| + lastval = TYPE_FIELD_ENUMVAL (type, i);
|
| }
|
| lastval++;
|
| }
|
|
|