summaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-07-19 23:30:11 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-07-19 23:30:11 +0000
commit482022f5bf79d6fe2b85d901779d32c9601e4221 (patch)
tree47be43dc493eb1b1fe9c727c43fea03a1b747375 /gdb/infrun.c
parent2903e031c7b33e07b2898ff85d1b6c9be230da50 (diff)
downloadgdb-482022f5bf79d6fe2b85d901779d32c9601e4221.tar.gz
import gdb-1999-07-19 snapshot
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c5
1 files changed, 4 insertions, 1 deletions
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.