aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-21 16:15:20 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-21 16:15:20 +0000
commita7c14aa534277d20e70a657c9d9298a517268c3c (patch)
treed40234993195a9c37a841961b96c49a345ccaf3e /gdb/mi
parentb25959ec59e10f6956995cbf3bed1bbec7f36d5d (diff)
downloadgdb-a7c14aa534277d20e70a657c9d9298a517268c3c.zip
gdb-a7c14aa534277d20e70a657c9d9298a517268c3c.tar.gz
gdb-a7c14aa534277d20e70a657c9d9298a517268c3c.tar.bz2
Output ``[]'' when a list.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/ChangeLog5
-rw-r--r--gdb/mi/mi-out.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog
index 447138c..5231b9a 100644
--- a/gdb/mi/ChangeLog
+++ b/gdb/mi/ChangeLog
@@ -1,3 +1,8 @@
+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''.
diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c
index 1cc8180..b2c02e6 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");