summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-07-13 04:13:50 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-07-13 04:13:50 +0000
commit558d0ddee5cf237d4069520f2989de0addfcbbc1 (patch)
treef8603997070eaf8c4d404be092a7c0ad3717fb78 /gdb
parent96f2fa82d0de2615de4d6582cfe41baa79aa5f0d (diff)
downloadgdb-558d0ddee5cf237d4069520f2989de0addfcbbc1.tar.gz
Enable all MI commands while inferiour is running
* mi/mi-main.c (mi_cmd_execute): Don't check if inferiour is executing.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/mi/mi-main.c17
2 files changed, 6 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 137ccf5167c..5e290c7e99e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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.
* gdb/top.c (execute_command_1): Don't check if the inferiour
is running.
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 4a52cbb66d6..733fc474f39 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -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)