summaryrefslogtreecommitdiff
path: root/gdb/inf-loop.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-03-14 19:55:51 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-03-14 19:55:51 +0000
commit712af3be2ee4d593ea25146e056e5d4df065ef97 (patch)
treee2ee88e137fb478b9b2d71571856485a548f55e1 /gdb/inf-loop.c
parent32c1e744c108afe9bebd41766ab3025279878f85 (diff)
downloadbinutils-gdb-712af3be2ee4d593ea25146e056e5d4df065ef97.tar.gz
* defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
(make_exec_error_cleanup): Remove declarations. * utils.c (exec_error_cleanup_chain): Remove. (do_exec_error_cleanups, discard_exec_error_cleanups) (make_exec_error_cleanup): Remove. * event-loop.c (start_event_loop): Adjust call to async_enable_stdin. * event-top.c (async_enable_stdin): Remove the paramater dummy. (async_disable_stdin): Don't register async_enable_stdin via cleanup. * inf-loop.c (inferior_event_handler): Don't call do_exec_error_cleanups. Call async_enable_stdin instead. * event-loop.c (start_event_loop): Adjust call to async_enable_stdin. * tui/tui-interp.c (tui_command_loop): Adjust call to async_enable_stdin.
Diffstat (limited to 'gdb/inf-loop.c')
-rw-r--r--gdb/inf-loop.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c
index c4fb1111994..cfb80d5deab 100644
--- a/gdb/inf-loop.c
+++ b/gdb/inf-loop.c
@@ -51,7 +51,7 @@ inferior_event_handler (enum inferior_event_type event_type,
target_async (NULL, 0);
pop_target ();
discard_all_continuations ();
- do_exec_error_cleanups (ALL_CLEANUPS);
+ async_enable_stdin ();
break;
case INF_REG_EVENT:
@@ -65,7 +65,7 @@ inferior_event_handler (enum inferior_event_type event_type,
target_async (NULL, 0);
pop_target ();
discard_all_continuations ();
- do_exec_error_cleanups (ALL_CLEANUPS);
+ async_enable_stdin ();
display_gdb_prompt (0);
}
break;
@@ -85,13 +85,11 @@ inferior_event_handler (enum inferior_event_type event_type,
if (target_has_execution)
target_async (NULL, 0);
- /* Calls to do_exec_error_cleanup below will call async_enable_stdin,
- and that resets 'sync_execution'. However, if we were running
- in sync execution mode, we also need to display the prompt. */
+ /* The call to async_enable_stdin below resets 'sync_execution'.
+ However, if sync_execution is 1 now, we also need to show the
+ prompt below, so save the current value. */
was_sync = sync_execution;
-
- if (was_sync)
- do_exec_error_cleanups (ALL_CLEANUPS);
+ async_enable_stdin ();
do_all_continuations ();