diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-07-13 04:09:47 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-07-13 04:09:47 +0000 |
commit | b10a37b10aeca5a6e7e79c476755ec7fa5815f2c (patch) | |
tree | 7dcdb9a9f25ea9ee6194ee816b166894b7d55535 /gdb | |
parent | ea06926780ff672e8e39287a23f6fde0a5817787 (diff) | |
download | gdb-b10a37b10aeca5a6e7e79c476755ec7fa5815f2c.zip gdb-b10a37b10aeca5a6e7e79c476755ec7fa5815f2c.tar.gz gdb-b10a37b10aeca5a6e7e79c476755ec7fa5815f2c.tar.bz2 |
Allow all CLI command even if target is executing.
* gdb/top.c (execute_command_1): Don't check if the inferiour
is running.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/top.c | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d764ccc..137ccf5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 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. Fix printing of frame, when frame is wrong. @@ -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; |