Enable all MI commands while inferiour is running
authorVladimir Prus <vladimir@codesourcery.com>
Sun, 13 Jul 2008 04:13:50 +0000 (04:13 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sun, 13 Jul 2008 04:13:50 +0000 (04:13 +0000)
        * mi/mi-main.c (mi_cmd_execute): Don't check if
        inferiour is executing.

gdb/ChangeLog
gdb/mi/mi-main.c

index 137ccf5167c3d89c7a5721dc55d513c663092f62..5e290c7e99edcd243d75735f9be3a7c740e0a826 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Enable all commands while inferiour is running
+        * mi/mi-main.c (mi_cmd_execute): Don't check if
+        inferiour is executing.
+
 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
 
        Allow all CLI command even if target is executing.
index 4a52cbb66d6f76529e23383c13bab53bc235005e..733fc474f3935e42fa789fbce15fdcfb6d4e81d7 100644 (file)
@@ -1121,23 +1121,6 @@ mi_cmd_execute (struct mi_parse *parse)
          error_stream (stb);
        }
 
-      if ((!non_stop && any_running ())
-         || (non_stop && is_running (inferior_ptid)))
-       {
-         if (strcmp (parse->command, "exec-interrupt"))
-           {
-             struct ui_file *stb;
-             stb = mem_fileopen ();
-
-             fputs_unfiltered ("Cannot execute command ", stb);
-             fputstr_unfiltered (parse->command, '"', stb);
-             fputs_unfiltered (" while target running", stb);
-
-             make_cleanup_ui_file_delete (stb);
-             error_stream (stb);
-           }
-       }
-
       parse->cmd->argv_func (parse->command, parse->argv, parse->argc);
     }
   else if (parse->cmd->cli.cmd != 0)
This page took 0.030201 seconds and 4 git commands to generate.