X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.python%2Fpy-breakpoint.exp;h=95f2b2905d3cadef1821ea93f0148a4cc90359b0;hb=bac7c5cf92e85195de99077b4147358bb372e87a;hp=625977c0ad48810735cf581c2cd0cc8073a26ef7;hpb=330f1d3825daa0d9e8d6c54f4fcf6fa5800e5664;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp index 625977c0ad..95f2b2905d 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint.exp @@ -695,6 +695,25 @@ proc_with_prefix test_bkpt_qualified {} { "-q in spec string and qualified false" } +proc_with_prefix test_bkpt_probe {} { + global decimal hex testfile srcfile + + if { [prepare_for_testing "failed to prepare" ${testfile}-probes \ + ${srcfile} {debug c++ additional_flags=-DUSE_PROBES}] } { + return -1 + } + + if ![runto_main] then { + fail "cannot run to main." + return 0 + } + + gdb_test \ + "python gdb.Breakpoint(\"-probe test:result_updated\")" \ + "Breakpoint $decimal at $hex" \ + "-probe in spec string" +} + test_bkpt_basic test_bkpt_deletion test_bkpt_cond_and_cmds @@ -708,3 +727,4 @@ test_bkpt_pending test_bkpt_events test_bkpt_explicit_loc test_bkpt_qualified +test_bkpt_probe