X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.ada%2Ffullname_bp.exp;h=0e4d32f083601e4304e763bd53ccc4ee3e9daf21;hb=f8eba3c61629b3c03ac1f33853eab4d8507adb9c;hp=faf63b9399195009074f784ae556f3e747ac5ab6;hpb=75c8c9d72cb6cdf4ccbaa5082bd7037afaf0fe8e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.ada/fullname_bp.exp b/gdb/testsuite/gdb.ada/fullname_bp.exp index faf63b9399..0e4d32f083 100644 --- a/gdb/testsuite/gdb.ada/fullname_bp.exp +++ b/gdb/testsuite/gdb.ada/fullname_bp.exp @@ -25,6 +25,9 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } return -1 } +# Note: We restart the debugger before setting each breakpoint, because +# we want to test the situation where the symtab for our breakpoint +# has not been created yet. clean_restart ${testfile} # Break on "pck.hello" rather than just "hello" to make sure we trigger @@ -32,3 +35,23 @@ clean_restart ${testfile} gdb_test "break pck.hello" \ "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+." +# Do the same, but this time using a linespec where the user also +# provided a filename. + +clean_restart ${testfile} + +gdb_test "break pck.adb:pck.hello" \ + "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+." + +# Same scenarios as above, but with a function name that is spelled +# with upper-case letters. + +clean_restart ${testfile} + +gdb_test "break Pck.Hello" \ + "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+." + +clean_restart ${testfile} + +gdb_test "break pck.adb:Pck.Hello" \ + "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."