GNU Binutils with patches for OS216
Révision | a704a33515434f6d8e4e600b76b6af2324f53864 (tree) |
---|---|
l'heure | 2006-09-14 11:24:45 |
Auteur | Nick Roberts <nickrob@snap...> |
Commiter | Nick Roberts |
(mi_cmd_execute): Check for current_command_token.
(mi_interpreter_exec_bp_cmd): New function (from Apple).
@@ -1320,7 +1320,7 @@ mi_cmd_execute (struct mi_parse *parse) | ||
1320 | 1320 | |
1321 | 1321 | if (target_executing) |
1322 | 1322 | { |
1323 | - if (!previous_command_token) | |
1323 | + if (!previous_command_token && current_command_token) | |
1324 | 1324 | previous_command_token = xstrdup (current_command_token); |
1325 | 1325 | if (strcmp (parse->command, "exec-interrupt")) |
1326 | 1326 | { |
@@ -1388,7 +1388,6 @@ mi_execute_cli_command (const char *cmd, int args_p, const char *args) | ||
1388 | 1388 | } |
1389 | 1389 | } |
1390 | 1390 | |
1391 | - | |
1392 | 1391 | enum mi_cmd_result |
1393 | 1392 | mi_execute_async_cli_command (char *mi, char *args, int from_tty) |
1394 | 1393 | { |
@@ -1663,6 +1662,14 @@ _initialize_mi_main (void) | ||
1663 | 1662 | |
1664 | 1663 | int mi_dont_register_continuation = 0; |
1665 | 1664 | |
1665 | +void | |
1666 | +mi_interpreter_exec_bp_cmd (char *command, char **argv, int argc) | |
1667 | +{ | |
1668 | + mi_dont_register_continuation = 1; | |
1669 | + mi_cmd_interpreter_exec (command, argv, argc); | |
1670 | + mi_dont_register_continuation = 0; | |
1671 | +} | |
1672 | + | |
1666 | 1673 | /* mi_setup_continuation_arg - sets up a continuation structure |
1667 | 1674 | with the timer info and the command token, for use with |
1668 | 1675 | an asyncronous mi command. Will only cleanup the exec_cleanup |