| Index: gdb/p-typeprint.c
|
| diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c
|
| index dae56d3a047dbe48fef1326d73f2d58334c2c87e..a00f5b32d9f41da617a54aec63e6abc618141d38 100644
|
| --- a/gdb/p-typeprint.c
|
| +++ b/gdb/p-typeprint.c
|
| @@ -131,7 +131,7 @@ pascal_print_typedef (struct type *type, struct symbol *new_symbol,
|
| static void
|
| pascal_type_print_derivation_info (struct ui_file *stream, struct type *type)
|
| {
|
| - char *name;
|
| + const char *name;
|
| int i;
|
|
|
| for (i = 0; i < TYPE_N_BASECLASSES (type); i++)
|
| @@ -629,7 +629,7 @@ pascal_type_print_base (struct type *type, struct ui_file *stream, int show,
|
| {
|
| struct fn_field *f = TYPE_FN_FIELDLIST1 (type, i);
|
| int j, len2 = TYPE_FN_FIELDLIST_LENGTH (type, i);
|
| - char *method_name = TYPE_FN_FIELDLIST_NAME (type, i);
|
| + const char *method_name = TYPE_FN_FIELDLIST_NAME (type, i);
|
|
|
| /* this is GNU C++ specific
|
| how can we know constructor/destructor?
|
| @@ -750,11 +750,12 @@ pascal_type_print_base (struct type *type, struct ui_file *stream, int show,
|
| 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);
|
| + " := %s",
|
| + plongest (TYPE_FIELD_ENUMVAL (type, i)));
|
| + lastval = TYPE_FIELD_ENUMVAL (type, i);
|
| }
|
| lastval++;
|
| }
|
|
|