diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-06-18 17:57:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-06-18 17:57:43 +0000 |
commit | b30bf9ee99a2fd704f3a335d185041e7432f3105 (patch) | |
tree | 8e750381e3675422a8e7a3c5f62141faf912e679 /gdb/mi/mi-out.c | |
parent | 6f9efd975101f3a93625952de6de81ae36ef8c4b (diff) | |
download | gdb-b30bf9ee99a2fd704f3a335d185041e7432f3105.zip gdb-b30bf9ee99a2fd704f3a335d185041e7432f3105.tar.gz gdb-b30bf9ee99a2fd704f3a335d185041e7432f3105.tar.bz2 |
Recognize -i=mi0, -i=mi1 and -i=mi.
Diffstat (limited to 'gdb/mi/mi-out.c')
-rw-r--r-- | gdb/mi/mi-out.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 0e0ac3f..034d3c1 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -33,6 +33,7 @@ struct ui_out_data { int suppress_field_separator; int first_header; + int mi_version; struct ui_file *buffer; }; @@ -379,11 +380,12 @@ mi_out_put (struct ui_out *uiout, /* initalize private members at startup */ struct ui_out * -mi_out_new (void) +mi_out_new (int mi_version) { int flags = 0; struct ui_out_data *data = XMALLOC (struct ui_out_data); data->suppress_field_separator = 0; + data->mi_version = mi_version; /* FIXME: This code should be using a ``string_file'' and not the TUI buffer hack. */ data->buffer = mem_fileopen (); |