aboutsummaryrefslogtreecommitdiff
path: root/gdb/exceptions.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-08-26 09:28:27 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-08-26 09:28:27 +0000
commite93ca0199f5ea2bec534cf051c2007641f952f82 (patch)
treef9264079097737f3630b5b9c0f3a16a3af579d84 /gdb/exceptions.c
parentbdb5404946bc009d72a4e3d3c1ed4c00b8215d89 (diff)
downloadgdb-e93ca0199f5ea2bec534cf051c2007641f952f82.zip
gdb-e93ca0199f5ea2bec534cf051c2007641f952f82.tar.gz
gdb-e93ca0199f5ea2bec534cf051c2007641f952f82.tar.bz2
gdb/
No functionality change. * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make function comment a reference, new variables tp and bs, move here code from throw_exception. * breakpoint.h (bpstat_clear_actions): Remove the BS parameter, describe it in the comment. * exceptions.c (throw_exception): Remove variable tp, move the code for bpstat_clear_actions to bpstat_clear_actions.
Diffstat (limited to 'gdb/exceptions.c')
-rw-r--r--gdb/exceptions.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/exceptions.c b/gdb/exceptions.c
index 559e8ed..e9fdb26 100644
--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -207,21 +207,12 @@ exceptions_state_mc_action_iter_1 (void)
void
throw_exception (struct gdb_exception exception)
{
- struct thread_info *tp = NULL;
-
quit_flag = 0;
immediate_quit = 0;
- if (!ptid_equal (inferior_ptid, null_ptid))
- tp = find_thread_ptid (inferior_ptid);
-
/* 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). */
- if (tp != NULL)
- {
- /* Clear queued breakpoint commands. */
- bpstat_clear_actions (tp->control.stop_bpstat);
- }
+ bpstat_clear_actions ();
do_cleanups (ALL_CLEANUPS);