From: Pedro Alves Date: Tue, 7 Nov 2017 11:16:09 +0000 (+0000) Subject: Add some more breakpoint/location range tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a02b41a7e604471e584dc2151fbd36714842710e;p=binutils-gdb.git Add some more breakpoint/location range tests Some extra thoroughness tests that I had over here. gdb/testsuite/ChangeLog: 2017-11-07 Pedro Alves * gdb.cp/ena-dis-br-range.exp: Add more tests. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2a89733aba9..d8ed391f795 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-11-07 Pedro Alves + + * gdb.cp/ena-dis-br-range.exp: Add more tests. + 2017-11-07 Pedro Alves * gdb.base/ena-dis-br.exp (test_ena_dis_br): Adjust test. diff --git a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp index 8db53bdf348..ec55824d4ac 100644 --- a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp +++ b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp @@ -80,6 +80,14 @@ test_enable_disable "enable 1" y y y y y y test_enable_disable "disable 2" y n y y y y test_enable_disable "enable 2" y y y y y y +# Check that we can disable/disable a range of breakpoints. +test_enable_disable "disable 1-2" n n y y y y +test_enable_disable "enable 1-2" y y y y y y + +# Check that we can disable/disable a list of breakpoints. +test_enable_disable "disable 1 2" n n y y y y +test_enable_disable "enable 1 2" y y y y y y + # Check that we can disable/enable a single location breakpoint. test_enable_disable "disable 2.2" y y y n y y test_enable_disable "enable 2.2" y y y y y y @@ -93,6 +101,11 @@ test_enable_disable "enable 2.2-3" y y y y y y test_enable_disable "disable 2.2-2" y y y n y y test_enable_disable "enable 2.2-2" y y y y y y +# Check that we can disable/disable a list of breakpoints that +# includes some elements with location ranges and others without. +test_enable_disable "disable 1 2.1 2.3-4" n y n y n n +test_enable_disable "enable 1 2.1 2.3-4" y y y y y y + # Check that we can disable a location breakpoint range with max > # existing breakpoint location. gdb_test "disable 2.3-5" "Bad breakpoint location number '5'" \