From f7f9a841a31878b377a60bfc7c793e6c8400fafe Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 10 Jun 2008 09:35:09 +0000 Subject: 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. --- gdb/infcmd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index a844b7d..01e1ebe 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -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); -- cgit v1.1