summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/nextoverthrow.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-12-15 21:19:50 +0000
committerTom Tromey <tromey@redhat.com>2010-12-15 21:19:50 +0000
commit5b79abe7f19d73ff246909922f3c2da2af689779 (patch)
tree8142c32892796da119dac7e1a546c9fe16160d48 /gdb/testsuite/gdb.cp/nextoverthrow.exp
parent8bdf35dcae2506a183214562484f24b4aaffe3ab (diff)
downloadbinutils-gdb-5b79abe7f19d73ff246909922f3c2da2af689779.tar.gz
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/testsuite/gdb.cp/nextoverthrow.exp')
-rw-r--r--gdb/testsuite/gdb.cp/nextoverthrow.exp11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/nextoverthrow.exp b/gdb/testsuite/gdb.cp/nextoverthrow.exp
index 960ea0d8e45..3ec51f7fbe7 100644
--- a/gdb/testsuite/gdb.cp/nextoverthrow.exp
+++ b/gdb/testsuite/gdb.cp/nextoverthrow.exp
@@ -149,5 +149,14 @@ gdb_test "advance $line" ".*" "advance-over-throw"
tbreak_and_cont "End: advance"
verify_testval "pre-check - advance" 8
+tbreak_and_cont "Start: resumebpt"
+gdb_test "tbreak _Unwind_RaiseException"
+gdb_test "continue" "Temporary breakpoint.*" "continuing to _Unwind_RaiseException"
+gdb_test "finish" "Run till exit .*"
+gdb_test {set $retpc=$pc}
+gdb_test {break *$retpc if dummy ()}
+tbreak_and_cont "Second: resumebpt"
+gdb_test "next"
+
tbreak_and_cont "done"
-verify_testval "post-check - advance" 9
+verify_testval "post-check - advance" 10