aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
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
commite3d6cd5f43da96f88c0440a3d843f11f499e74e5 (patch)
treea38d574d746d17e049a29e9fc7db90ba34e42253 /gdb/mi
parentb10a37b10aeca5a6e7e79c476755ec7fa5815f2c (diff)
downloadgdb-e3d6cd5f43da96f88c0440a3d843f11f499e74e5.zip
gdb-e3d6cd5f43da96f88c0440a3d843f11f499e74e5.tar.gz
gdb-e3d6cd5f43da96f88c0440a3d843f11f499e74e5.tar.bz2
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/mi')
-rw-r--r--gdb/mi/mi-main.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 4a52cbb..733fc47 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)