From b10a37b10aeca5a6e7e79c476755ec7fa5815f2c Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sun, 13 Jul 2008 04:09:47 +0000 Subject: Allow all CLI command even if target is executing. * gdb/top.c (execute_command_1): Don't check if the inferiour is running. --- gdb/top.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gdb/top.c') diff --git a/gdb/top.c b/gdb/top.c index 6f7b65c..7ef539f 100644 --- 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; -- cgit v1.1