+2001-06-21 Andrew Cagney <ac131313@redhat.com>
+
+ * mi-out.c (mi_open): For lists, when mi_version > 0, use ``[''.
+ (mi_close): Ditto for ``]''.
+
2001-06-20 Andrew Cagney <ac131313@redhat.com>
* mi-out.c (mi_table_header): Add parameter ``col_name''.
fputc_unfiltered ('{', data->buffer);
break;
case ui_out_type_list:
- fputc_unfiltered ('[', data->buffer);
+ if (data->mi_version > 0)
+ fputc_unfiltered ('[', data->buffer);
+ else
+ fputc_unfiltered ('{', data->buffer);
break;
default:
internal_error (__FILE__, __LINE__, "bad switch");
fputc_unfiltered ('}', data->buffer);
break;
case ui_out_type_list:
- fputc_unfiltered (']', data->buffer);
+ if (data->mi_version > 0)
+ fputc_unfiltered (']', data->buffer);
+ else
+ fputc_unfiltered ('}', data->buffer);
break;
default:
internal_error (__FILE__, __LINE__, "bad switch");