diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-14 19:55:51 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-14 19:55:51 +0000 |
commit | 712af3be2ee4d593ea25146e056e5d4df065ef97 (patch) | |
tree | e2ee88e137fb478b9b2d71571856485a548f55e1 /gdb/utils.c | |
parent | 32c1e744c108afe9bebd41766ab3025279878f85 (diff) | |
download | gdb-712af3be2ee4d593ea25146e056e5d4df065ef97.zip gdb-712af3be2ee4d593ea25146e056e5d4df065ef97.tar.gz gdb-712af3be2ee4d593ea25146e056e5d4df065ef97.tar.bz2 |
* 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/utils.c')
-rw-r--r-- | gdb/utils.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 91c593e..594fc73 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -105,8 +105,6 @@ static int debug_timestamp = 0; static struct cleanup *cleanup_chain; /* cleaned up after a failed command */ static struct cleanup *final_cleanup_chain; /* cleaned up when gdb exits */ static struct cleanup *exec_cleanup_chain; /* cleaned up on each execution command */ -/* cleaned up on each error from within an execution command */ -static struct cleanup *exec_error_cleanup_chain; /* Pointer to what is left to do for an execution command after the target stops. Used only in asynchronous mode, by targets that @@ -222,12 +220,6 @@ make_exec_cleanup (make_cleanup_ftype *function, void *arg) return make_my_cleanup (&exec_cleanup_chain, function, arg); } -struct cleanup * -make_exec_error_cleanup (make_cleanup_ftype *function, void *arg) -{ - return make_my_cleanup (&exec_error_cleanup_chain, function, arg); -} - static void do_freeargv (void *arg) { @@ -330,12 +322,6 @@ do_exec_cleanups (struct cleanup *old_chain) do_my_cleanups (&exec_cleanup_chain, old_chain); } -void -do_exec_error_cleanups (struct cleanup *old_chain) -{ - do_my_cleanups (&exec_error_cleanup_chain, old_chain); -} - static void do_my_cleanups (struct cleanup **pmy_chain, struct cleanup *old_chain) @@ -365,12 +351,6 @@ discard_final_cleanups (struct cleanup *old_chain) } void -discard_exec_error_cleanups (struct cleanup *old_chain) -{ - discard_my_cleanups (&exec_error_cleanup_chain, old_chain); -} - -void discard_my_cleanups (struct cleanup **pmy_chain, struct cleanup *old_chain) { |