This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[MI non-stop 08/11] Enable all MI commands while inferiour is running
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 28 Jun 2008 20:57:17 +0400
- Subject: [MI non-stop 08/11] Enable all MI commands while inferiour is running
The previous patch enables all CLI commands when inferiour is running.
This one does same for MI. Will commit after core non-stop patches
are in.
- Volodya
* mi/mi-main.c (mi_cmd_execute): Don't check if
inferiour is executing.
---
gdb/mi/mi-main.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 87c3257..0b5d076 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1202,23 +1202,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);
- }
- }
-
current_token = xstrdup (parse->token);
cleanup = make_cleanup (free_current_contents, ¤t_token);
parse->cmd->argv_func (parse->command, parse->argv, parse->argc);
--
1.5.3.5