diff options
author | Tom Tromey <tromey@redhat.com> | 2010-12-15 21:19:50 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-12-15 21:19:50 +0000 |
commit | 5b79abe7f19d73ff246909922f3c2da2af689779 (patch) | |
tree | 8142c32892796da119dac7e1a546c9fe16160d48 /gdb/infrun.c | |
parent | 8bdf35dcae2506a183214562484f24b4aaffe3ab (diff) | |
download | gdb-5b79abe7f19d73ff246909922f3c2da2af689779.zip gdb-5b79abe7f19d73ff246909922f3c2da2af689779.tar.gz gdb-5b79abe7f19d73ff246909922f3c2da2af689779.tar.bz2 |
gdb
* infrun.c (save_infcall_control_state): Handle the
exception-resume breakpoint.
(restore_infcall_control_state): Likewise.
(discard_infcall_control_state): Likewise.
gdb/testsuite
2010-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.cp/nextoverthrow.cc (dummy): Return int 0.
(NextOverThrowDerivates) <resumebpt>: New.
(resumebpt_test): New.
(main): Call resumebpt_test.
* gdb.cp/nextoverthrow.exp: New block for test of "resumebpt".
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 1bc00a4..f72a18d 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -6379,6 +6379,7 @@ save_infcall_control_state (void) inf_status->inferior_control = inf->control; tp->control.step_resume_breakpoint = NULL; + tp->control.exception_resume_breakpoint = NULL; /* Save original bpstat chain to INF_STATUS; replace it in TP with copy of chain. If caller's caller is walking the chain, they'll be happier if we @@ -6428,6 +6429,10 @@ restore_infcall_control_state (struct infcall_control_state *inf_status) if (tp->control.step_resume_breakpoint) tp->control.step_resume_breakpoint->disposition = disp_del_at_next_stop; + if (tp->control.exception_resume_breakpoint) + tp->control.exception_resume_breakpoint->disposition + = disp_del_at_next_stop; + /* Handle the bpstat_copy of the chain. */ bpstat_clear (&tp->control.stop_bpstat); @@ -6476,6 +6481,10 @@ discard_infcall_control_state (struct infcall_control_state *inf_status) inf_status->thread_control.step_resume_breakpoint->disposition = disp_del_at_next_stop; + if (inf_status->thread_control.exception_resume_breakpoint) + inf_status->thread_control.exception_resume_breakpoint->disposition + = disp_del_at_next_stop; + /* See save_infcall_control_state for info on stop_bpstat. */ bpstat_clear (&inf_status->thread_control.stop_bpstat); |