diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-05-14 16:59:49 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-05-14 16:59:49 +0000 |
commit | 5a9aa5dc6fe1f5d84bcf3b7b412a415a3e23c907 (patch) | |
tree | 96a52171f14ba874cfe68e9ab90e623567040eac /gdb/mi/mi-out.c | |
parent | 02649152ccfe6ca5792be2574a1ba5f8e2152c19 (diff) | |
download | gdb-5a9aa5dc6fe1f5d84bcf3b7b412a415a3e23c907.zip gdb-5a9aa5dc6fe1f5d84bcf3b7b412a415a3e23c907.tar.gz gdb-5a9aa5dc6fe1f5d84bcf3b7b412a415a3e23c907.tar.bz2 |
Output ``[...]'' when a list.
Diffstat (limited to 'gdb/mi/mi-out.c')
-rw-r--r-- | gdb/mi/mi-out.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index e920812..b2bfaed 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -307,7 +307,17 @@ mi_open (struct ui_out *uiout, enum ui_out_type type) { struct ui_out_data *data = ui_out_data (uiout); - fputc_unfiltered ('{', data->buffer); + switch (type) + { + case ui_out_type_tuple: + fputc_unfiltered ('{', data->buffer); + break; + case ui_out_type_list: + fputc_unfiltered ('[', data->buffer); + break; + default: + internal_error (__FILE__, __LINE__, "bad switch"); + } } static void @@ -315,7 +325,17 @@ mi_close (struct ui_out *uiout, enum ui_out_type type) { struct ui_out_data *data = ui_out_data (uiout); - fputc_unfiltered ('}', data->buffer); + switch (type) + { + case ui_out_type_tuple: + fputc_unfiltered ('}', data->buffer); + break; + case ui_out_type_list: + fputc_unfiltered (']', data->buffer); + break; + default: + internal_error (__FILE__, __LINE__, "bad switch"); + } } /* add a string to the buffer */ |