Allow all CLI command even if target is executing.
authorVladimir Prus <vladimir@codesourcery.com>
Sun, 13 Jul 2008 04:09:47 +0000 (04:09 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sun, 13 Jul 2008 04:09:47 +0000 (04:09 +0000)
        * gdb/top.c (execute_command_1): Don't check if the inferiour
        is running.

gdb/ChangeLog
gdb/top.c

index d764ccced4eea8ef8f85631a2cfe430115bbd019..137ccf5167c3d89c7a5721dc55d513c663092f62 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Allow all CLI command even if target is executing.
+        * gdb/top.c (execute_command_1): Don't check if the inferiour
+        is running.
+
 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
 
        * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
index 6f7b65c03e02b7c294b705f08b686c17966a11cc..7ef539feafd1c57ec8fc7eba1776cc3752fd8779 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -422,13 +422,6 @@ execute_command (char *p, int from_tty)
          && !get_cmd_no_selected_thread_ok (c))
        error (_("\
 Cannot execute this command without a live selected thread.  See `help thread'."));
-      /* If the target is running, we allow only a limited set of
-        commands.  */
-      else if (target_can_async_p ()
-              && ((!non_stop && any_running ())
-                  || (non_stop && is_running (inferior_ptid)))
-              && !get_cmd_async_ok (c))
-       error (_("Cannot execute this command while the target is running."));
 
       /* Pass null arg rather than an empty one.  */
       arg = *p ? p : 0;