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"))
{
}
}
-
enum mi_cmd_result
mi_execute_async_cli_command (char *mi, char *args, int from_tty)
{
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