]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.python/py-breakpoint.exp
Fix Python gdb.Breakpoint.location crash
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.python / py-breakpoint.exp
index 3ce0ea11deae07348a89957171db755fb89f99b4..7d5fbccad3b78564674c44722f5846f530ef1272 100644 (file)
@@ -616,6 +616,11 @@ proc_with_prefix test_bkpt_explicit_loc {} {
     gdb_test "python bp1 = gdb.Breakpoint (function=\"blah\")" \
        "Function \"blah\" not defined.*" \
        "set invalid explicit breakpoint by missing function"
+
+    delete_breakpoints
+    gdb_test "catch throw" "Catchpoint .* \\(throw\\)"
+    gdb_test "python print (gdb.breakpoints()\[0\].location)" None \
+       "Examine location of catchpoint"
 }
 
 proc_with_prefix test_bkpt_qualified {} {