Update copyright year range in all GDB files
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / ena-dis-br-range.exp
index 8db53bdf348e7cb6a4c9d06d1cfae61805224ec7..c9909ba33781bf515be2d4f8b1d3f78cfae848b4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2017 Free Software Foundation, Inc.
+# Copyright 2017-2018 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -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'" \
This page took 0.024647 seconds and 4 git commands to generate.