summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2006-09-14 02:24:45 +0000
committerNick Roberts <nickrob@snap.net.nz>2006-09-14 02:24:45 +0000
commit525de92aaa9946c7b5952cca5359c3704ceed4e8 (patch)
treea6a2fcd9517af4064040dde6404c9c82a3729964
parente4c65a8a7df49cbd29c5b3ab2e706921bd0548a3 (diff)
downloadgdb-525de92aaa9946c7b5952cca5359c3704ceed4e8.tar.gz
(mi_cmd_execute): Check for current_command_token.
(mi_interpreter_exec_bp_cmd): New function (from Apple).
-rw-r--r--gdb/mi/mi-main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index d3210ff8e5a..8d290550c38 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1320,7 +1320,7 @@ mi_cmd_execute (struct mi_parse *parse)
if (target_executing)
{
- if (!previous_command_token)
+ if (!previous_command_token && current_command_token)
previous_command_token = xstrdup (current_command_token);
if (strcmp (parse->command, "exec-interrupt"))
{
@@ -1388,7 +1388,6 @@ mi_execute_cli_command (const char *cmd, int args_p, const char *args)
}
}
-
enum mi_cmd_result
mi_execute_async_cli_command (char *mi, char *args, int from_tty)
{
@@ -1663,6 +1662,14 @@ _initialize_mi_main (void)
int mi_dont_register_continuation = 0;
+void
+mi_interpreter_exec_bp_cmd (char *command, char **argv, int argc)
+{
+ mi_dont_register_continuation = 1;
+ mi_cmd_interpreter_exec (command, argv, argc);
+ mi_dont_register_continuation = 0;
+}
+
/* mi_setup_continuation_arg - sets up a continuation structure
with the timer info and the command token, for use with
an asyncronous mi command. Will only cleanup the exec_cleanup