From 482022f5bf79d6fe2b85d901779d32c9601e4221 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Mon, 19 Jul 1999 23:30:11 +0000 Subject: import gdb-1999-07-19 snapshot --- gdb/infrun.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 8fa98aeaa7c..08e6f645b1d 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1262,6 +1262,9 @@ fetch_inferior_event () if (!async_ecs->wait_some_more) { + /* Do only the cleanups that have been added by this + function. Let the continuations for the commands do the rest, + if there are any. */ do_exec_cleanups (old_cleanups); normal_stop (); /* Is there anything left to do for the command issued to @@ -3112,6 +3115,7 @@ complete_execution () { extern cleanup_sigint_signal_handler PARAMS ((void)); + target_executing = 0; if (sync_execution) { add_file_handler (input_fd, (file_handler_func *) call_readline, 0); @@ -3120,7 +3124,6 @@ complete_execution () cleanup_sigint_signal_handler (); display_gdb_prompt (0); } - target_executing = 0; } /* Here to return control to GDB when the inferior stops for real. -- cgit v1.2.1