[gdb] Only force INTERP_CONSOLE ui_out for breakpoint commands in MI mode
[deliverable/binutils-gdb.git] / gdb / cli / cli-script.c
index 316aca0f274772016a6c587a808e3e092e908448..06cdcd6bfe5c3f3a90f912a2ecc449b1b708f361 100644 (file)
@@ -696,6 +696,9 @@ execute_control_command_1 (struct command_line *cmd, int from_tty)
 enum command_control_type
 execute_control_command (struct command_line *cmd, int from_tty)
 {
+  if (!current_uiout->is_mi_like_p ())
+    return execute_control_command_1 (cmd, from_tty);
+
   /* Make sure we use the console uiout.  It's possible that we are executing
      breakpoint commands while running the MI interpreter.  */
   interp *console = interp_lookup (current_ui, INTERP_CONSOLE);
This page took 0.024369 seconds and 4 git commands to generate.