Allow all CLI command even if target is executing.
* gdb/top.c (execute_command_1): Don't check if the inferiour is running.
This commit is contained in:
parent
ea06926780
commit
b10a37b10a
2 changed files with 6 additions and 7 deletions
|
@ -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>
|
2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
|
||||||
|
|
||||||
* mi/mi-main.c (mi_cmd_execute): Remove unused variable.
|
* mi/mi-main.c (mi_cmd_execute): Remove unused variable.
|
||||||
|
|
|
@ -422,13 +422,6 @@ execute_command (char *p, int from_tty)
|
||||||
&& !get_cmd_no_selected_thread_ok (c))
|
&& !get_cmd_no_selected_thread_ok (c))
|
||||||
error (_("\
|
error (_("\
|
||||||
Cannot execute this command without a live selected thread. See `help thread'."));
|
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. */
|
/* Pass null arg rather than an empty one. */
|
||||||
arg = *p ? p : 0;
|
arg = *p ? p : 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue