diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-10-01 21:15:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-10-01 21:15:43 +0000 |
commit | da0f9dcdbea04f3552fab2dcbf081045b824afa8 (patch) | |
tree | 58aee8a22591dee82df07f6e2fc8d08a630c2160 /gdb/mi/mi-main.c | |
parent | bdf64bacd5b198ebda7fd581a5b26547ec6a925b (diff) | |
download | gdb-da0f9dcdbea04f3552fab2dcbf081045b824afa8.zip gdb-da0f9dcdbea04f3552fab2dcbf081045b824afa8.tar.gz gdb-da0f9dcdbea04f3552fab2dcbf081045b824afa8.tar.bz2 |
2002-10-01 Andrew Cagney <ac131313@redhat.com>
* NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
and that "mi0" syntax has been removed.
2002-10-01 Andrew Cagney <ac131313@redhat.com>
* gdb.texinfo (Mode Options): Update --interpreter option. "mi2"
and "mi1" instead of "mi1" and "mi0".
2002-10-01 Andrew Cagney <ac131313@redhat.com>
* mi-main.c (mi2_command_loop): New function.
(mi0_command_loop): Delete function.
(_initialize_mi_main): Recognize, and default to, "mi2". Do not
recognize "mi0".
* mi-out.c (mi_table_begin): Remove mi0 code.
(mi_table_body, mi_table_end): Ditto.
(mi_table_header, mi_open, mi_close): Ditto.
Diffstat (limited to 'gdb/mi/mi-main.c')
-rw-r--r-- | gdb/mi/mi-main.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 69dcc3e..b92ebf8 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1514,15 +1514,15 @@ mi_command_loop (int mi_version) } static void -mi0_command_loop (void) +mi1_command_loop (void) { - mi_command_loop (0); + mi_command_loop (1); } static void -mi1_command_loop (void) +mi2_command_loop (void) { - mi_command_loop (1); + mi_command_loop (2); } static void @@ -1547,11 +1547,12 @@ _initialize_mi_main (void) return; /* If we're _the_ interpreter, take control. */ - if (strcmp (interpreter_p, "mi0") == 0) - command_loop_hook = mi0_command_loop; - else if (strcmp (interpreter_p, "mi") == 0 - || strcmp (interpreter_p, "mi1") == 0) + if (strcmp (interpreter_p, "mi") == 0) + command_loop_hook = mi2_command_loop; + else if (strcmp (interpreter_p, "mi1") == 0) command_loop_hook = mi1_command_loop; + else if (strcmp (interpreter_p, "mi2") == 0) + command_loop_hook = mi2_command_loop; else return; |