Use observers to report stop events in MI.
* mi/mi-interp.c (mi_on_normal_stop): New. (mi_interpreter_init): Register mi_on_normal_stop. (mi_interpreter_exec_continuation): Remove. (mi_cmd_interpreter_exec): Don't register the above. * mi/mi-main.c (captured_mi_execute_command): Don't care about sync_execution. (mi_execute_async_cli_command): Don't install continuation. Don't print *stopped. (mi_exec_async_cli_cmd_continuation): Remove.
This commit is contained in:
parent
f5871ec07b
commit
f7f9a841a3
9 changed files with 114 additions and 89 deletions
|
@ -1383,10 +1383,7 @@ finish_command (char *arg, int from_tty)
|
|||
arg1->data.pointer = breakpoint;
|
||||
arg2->data.pointer = function;
|
||||
add_continuation (finish_command_continuation, arg1);
|
||||
|
||||
/* Do this only if not running asynchronously or if the target
|
||||
cannot do async execution. Otherwise, complete this command when
|
||||
the target actually stops, in fetch_inferior_event. */
|
||||
|
||||
discard_cleanups (old_chain);
|
||||
if (!target_can_async_p ())
|
||||
do_all_continuations (0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue