From: Andrew Cagney Date: Thu, 21 Jun 2001 16:15:20 +0000 (+0000) Subject: Output ``[]'' when a list. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7c14aa534277d20e70a657c9d9298a517268c3c;p=binutils-gdb.git Output ``[]'' when a list. --- diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog index 447138c8167..5231b9af364 100644 --- a/gdb/mi/ChangeLog +++ b/gdb/mi/ChangeLog @@ -1,3 +1,8 @@ +2001-06-21 Andrew Cagney + + * mi-out.c (mi_open): For lists, when mi_version > 0, use ``[''. + (mi_close): Ditto for ``]''. + 2001-06-20 Andrew Cagney * mi-out.c (mi_table_header): Add parameter ``col_name''. diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 1cc81806d32..b2c02e69d00 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -318,7 +318,10 @@ mi_open (struct ui_out *uiout, 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"); @@ -336,7 +339,10 @@ mi_close (struct ui_out *uiout, 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");