From a704a33515434f6d8e4e600b76b6af2324f53864 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Thu, 14 Sep 2006 02:24:45 +0000 Subject: [PATCH] (mi_cmd_execute): Check for current_command_token. (mi_interpreter_exec_bp_cmd): New function (from Apple). --- gdb/mi/mi-main.c | 11 +++++++++-- 1 file 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 -- 2.47.2