From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: [MI non-stop 08/11] Enable all MI commands while inferiour is running
Date: Sat, 28 Jun 2008 17:00:00 -0000 [thread overview]
Message-ID: <200806282057.17912.vladimir@codesourcery.com> (raw)
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
next reply other threads:[~2008-06-28 16:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-28 17:00 Vladimir Prus [this message]
2008-07-11 13:47 ` Daniel Jacobowitz
2008-07-13 6:00 ` Vladimir Prus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200806282057.17912.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox