* mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
authorDaniel Jacobowitz <drow@false.org>
Mon, 3 Sep 2007 17:51:10 +0000 (17:51 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 3 Sep 2007 17:51:10 +0000 (17:51 +0000)
gdb/ChangeLog
gdb/mi/mi-main.c

index 09a721ed665f913476e200e52c5a127d15ae0a2e..085e1b61adf7533efc3a1bcb610176b0e6439d64 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-03  Maxim Grigoriev  <maxim2405@gmail.com>
+           Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
+
 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
index a2063e41a5d2417b5f6f3fcfe8edd631f1afd0a2..0c4b904470c80f579ab93df4dd048ac736a06987 100644 (file)
@@ -1463,10 +1463,13 @@ mi_load_progress (const char *section_name,
      of this function.  */
   saved_uiout = uiout;
 
-  if (current_interp_named_p (INTERP_MI))
+  if (current_interp_named_p (INTERP_MI)
+      || current_interp_named_p (INTERP_MI2))
     uiout = mi_out_new (2);
   else if (current_interp_named_p (INTERP_MI1))
     uiout = mi_out_new (1);
+  else if (current_interp_named_p (INTERP_MI3))
+    uiout = mi_out_new (3);
   else
     return;