diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-09-14 02:24:45 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-09-14 02:24:45 +0000 |
commit | a704a33515434f6d8e4e600b76b6af2324f53864 (patch) | |
tree | 6568c3574b7e6d3533744ae8637d382891a871cd | |
parent | 118ce68156c080ac9e7eb9daa86c3dc9e90eecb5 (diff) | |
download | fsf-binutils-gdb-a704a33515434f6d8e4e600b76b6af2324f53864.zip fsf-binutils-gdb-a704a33515434f6d8e4e600b76b6af2324f53864.tar.gz fsf-binutils-gdb-a704a33515434f6d8e4e600b76b6af2324f53864.tar.bz2 |
(mi_cmd_execute): Check for current_command_token.
(mi_interpreter_exec_bp_cmd): New function (from Apple).
-rw-r--r-- | gdb/mi/mi-main.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index d3210ff..8d29055 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 |