diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-08-26 21:45:21 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-08-26 21:45:21 +0000 |
commit | 805e7fbd1685ce2082c06354cce5da0bd28bf30e (patch) | |
tree | 0e60b0aba6b6f859ffdcfd8fd7bbe0771ce1b7a2 /gdb/exceptions.c | |
parent | d81ce48c5589bb6018cab85e2476443f98ed4b70 (diff) | |
download | gdb-805e7fbd1685ce2082c06354cce5da0bd28bf30e.tar.gz |
gdb/
* breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
make_bpstat_clear_actions_cleanup and discard_cleanups for it.
* defs.h (make_bpstat_clear_actions_cleanup): New declaration.
* exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
* inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
* infrun.c (fetch_inferior_event): Call
make_bpstat_clear_actions_cleanup.
* top.c (execute_command): New variable cleanup_if_error, call
make_bpstat_clear_actions_cleanup and discard_cleanups for it.
* utils.c (do_bpstat_clear_actions_cleanup)
(make_bpstat_clear_actions_cleanup): New functions.
gdb/testsuite/
* gdb.base/commands.exp (error_clears_commands_left): New function.
(): Call it.
Diffstat (limited to 'gdb/exceptions.c')
-rw-r--r-- | gdb/exceptions.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/exceptions.c b/gdb/exceptions.c index e9fdb265553..b9c96beedd8 100644 --- a/gdb/exceptions.c +++ b/gdb/exceptions.c @@ -210,10 +210,6 @@ throw_exception (struct gdb_exception exception) quit_flag = 0; immediate_quit = 0; - /* Perhaps it would be cleaner to do this via the cleanup chain (not sure - I can think of a reason why that is vital, though). */ - bpstat_clear_actions (); - do_cleanups (ALL_CLEANUPS); /* Jump to the containing catch_errors() call, communicating REASON |