]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Rename to allow_btrace_tests
authorTom Tromey <tom@tromey.com>
Sun, 8 Jan 2023 17:44:15 +0000 (10:44 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:57 +0000 (13:18 -0700)
This changes skip_btrace_tests to invert the sense, and renames it to
allow_btrace_tests.

29 files changed:
gdb/testsuite/gdb.btrace/buffer-size.exp
gdb/testsuite/gdb.btrace/data.exp
gdb/testsuite/gdb.btrace/delta.exp
gdb/testsuite/gdb.btrace/dlopen.exp
gdb/testsuite/gdb.btrace/enable-new-thread.exp
gdb/testsuite/gdb.btrace/enable-running.exp
gdb/testsuite/gdb.btrace/enable.exp
gdb/testsuite/gdb.btrace/exception.exp
gdb/testsuite/gdb.btrace/function_call_history.exp
gdb/testsuite/gdb.btrace/gcore.exp
gdb/testsuite/gdb.btrace/instruction_history.exp
gdb/testsuite/gdb.btrace/multi-inferior.exp
gdb/testsuite/gdb.btrace/multi-thread-step.exp
gdb/testsuite/gdb.btrace/nohist.exp
gdb/testsuite/gdb.btrace/non-stop.exp
gdb/testsuite/gdb.btrace/reconnect.exp
gdb/testsuite/gdb.btrace/record_goto-step.exp
gdb/testsuite/gdb.btrace/record_goto.exp
gdb/testsuite/gdb.btrace/rn-dl-bind.exp
gdb/testsuite/gdb.btrace/segv.exp
gdb/testsuite/gdb.btrace/step.exp
gdb/testsuite/gdb.btrace/stepi.exp
gdb/testsuite/gdb.btrace/tailcall-only.exp
gdb/testsuite/gdb.btrace/tailcall.exp
gdb/testsuite/gdb.btrace/unknown_functions.exp
gdb/testsuite/gdb.btrace/vdso.exp
gdb/testsuite/gdb.python/py-record-btrace-threads.exp
gdb/testsuite/gdb.python/py-record-btrace.exp
gdb/testsuite/lib/gdb.exp

index d0a9086604f10bb56696bb8ad27b39adc0750fa9..e632ba56cf9cf378dccaaa28053aa0bf253b5260 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile record_goto.c
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index 8be2a4ccdead8daab5cce40427f6daee1d0e7633..67d4b094a8dd55105e5a671658fa8b7762dfb4d7 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index e4307e15a5bc1e1108976ead7fa257610f5affa2..f671937d260ceae4ec72aab89a05aba2e8ccd779 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile record_goto.c
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index b742cfa86bd91a9c00f0efcba47ac6071fc5bc3a..8cd0b9db9aabc70f474962fc279637d6e5f0aed3 100644 (file)
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests !skip_shlib_tests
+require allow_btrace_tests !skip_shlib_tests
 
 standard_testfile
 
index 22cc33f142ffaa7322c49afd1a5e6c28c9733284..a9c7d579e8ba283be25541b810d23afbc520f86c 100644 (file)
@@ -17,7 +17,7 @@
 
 # Test that new threads of recorded inferiors also get recorded.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 if [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] {
index 6e626e3a0535e20292409ed8a1b17a96444cd081..9dea21f5dfdaa767cacd28fd687e6dc6abd9508b 100644 (file)
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } {
index bb57f7b8a74ccfc170ef9a500ba61ed6c93b7291..acad4c6e82862053bfdc5f318e3e6407196e1438 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 # start fresh - without an executable
 gdb_exit
index e84ff14d193e3dbaf989cfa0060d4e8a18e9dabc..9f12abab323a34bb150c429f62cd5be68a754323 100755 (executable)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 # We expect a specific function call history.  This gets messed up with
 # PIE on 32-bit.
index fd35d762796a9df267a288e918e3501900a59a5c..e71e48fc0ca9739e3e0998c4b2d629c2d2f82f42 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 # We expect a specific function call history.  This gets messed up with
 # PIE on 32-bit.
index 1e98860aee3cacd97a092738dc15cfef8bd407ad..d18bda5346946214d2152d37e8517dca9881f67a 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile record_goto.c
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index 0e525c73cb768fffd892cd1ad87252a771c089d0..35b43d6843408d904532650cfd73055e3da4d639 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile .c .S
 if [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {debug}] {
index bbc03daacccb3cac65e1d9c38700c7dc4618c5e0..79e5a1c39bff50e99d2b5410440f992f0036d6e7 100644 (file)
@@ -22,7 +22,7 @@
 #
 # Each inferior can be recorded separately.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 require !use_gdb_stub
 
index a18734843ae786084de7101f739ab182fa0203ac..af61e5e73dac12c1104839a24838cf8db95f78bc 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } {
index 0875b8a6e226ce7810f6779552812f024938f298..f4ab977ded819ccc656b6bff88c8fee0ec2150cb 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile record_goto.c
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index 278064fbac5913217ca95ff38af5c6b3340d9f91..530fafd9573460fc96d58f52ef1c0e2169b1d5f9 100644 (file)
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } {
index 548aa16ed2999e4600ae0788ea1f475b072a42a5..1da9f4be566ea36075f1abdc3cd3bf39fb23bce9 100644 (file)
@@ -19,7 +19,7 @@
 
 load_lib gdbserver-support.exp
 
-require !skip_btrace_tests
+require allow_btrace_tests
 require !skip_gdbserver_tests
 
 standard_testfile
index 1f289b47f6419ad7ae2806db02f1bc2b7fd1f2a0..35731c72b40a535c2a976ee65d7d42b2790a7e7b 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile record_goto.c
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index dce9ca18c6c2ff084eb9521de9a55aae7e8adffc..240e18f67d69d07bfa626b7bb4775f5ce95bdcec 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 # The "record goto" command jumps to a specific instruction in the execution
 # trace.  To guarantee that we always get the same execution trace, we use
index f61aa936a8df839c07da569ac8f5fbdbf9b0f589..4a419a84fbbb4d9ffa47e9af3f25ae2ad294b12b 100644 (file)
@@ -21,7 +21,7 @@
 # Test that we can reverse-next over the dynamic linker's symbol
 # lookup code.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 if [prepare_for_testing "failed to prepare" $testfile $srcfile \
index 9d2567957296ce7ee74d55b804b60c9c3e89227e..dfd04b3cae7faad3ad72cab81c366b5ae0c182c0 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index 8ad58d48fdcb8252b5f7d9edff59e768b66eb6e2..219775cdeb1cbc2a0842e700a8c3c219aa8cde6b 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile record_goto.c
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index f659d58cf7cb4bae71a235e68a93f89c2ebba525..4592309796e84d764a0e6fac46959745d40cee3c 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 # This test is stepping on instruction level.  To guarantee that we always
 # get the same execution trace, we use an assembly source file.
index 16541b2eacfa28c90a7848d5c53ffa6552c09f35..857cc375ba3d5435593091441e5ee1faa11b3d87 100644 (file)
@@ -20,7 +20,7 @@
 # calls.  This used to cause a crash in get_frame_type.
 #
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 # This test requires the compiler to generate a tail call.  To guarantee that
 # we always get one, we use an assembly source file.
index f422fbb1b2a57140e6d7f3d97d42041b62ebc4e9..7fbcd40c0777f003ccf6d7170ac02c89a1eb735d 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 # This test requires the compiler to generate a tail call.  To guarantee that
 # we always get one, we use an assembly source file.
index 291d7df5963644054dbaecf6b1579e3329b325d9..fadfabd57b8f258f22abb99f1d6aca3de27b830b 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 
index 16a7e2307868dac6fa66c1e244ff98c9e9b64097..2bfc476b3cc4d17b03ed43af37333dde0fa5623d 100644 (file)
@@ -20,7 +20,7 @@
 #
 # Test that we can access the vdso memory during replay for stepping.
 
-require !skip_btrace_tests
+require allow_btrace_tests
 
 standard_testfile
 if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
index f0845f8bbd50ce14e219a57d54cf75ddd0b53726..ca9552754f3f4dc3b4e2332fcde354ad0eac4d3e 100644 (file)
@@ -17,7 +17,7 @@
 
 load_lib gdb-python.exp
 
-require !skip_btrace_tests !skip_python_tests
+require allow_btrace_tests !skip_python_tests
 
 standard_testfile
 
index 1326e8283b9b3b69f1d1850c5d99d2c9ed37692a..1b9824e284bc6ff3fb24bc4b42f0435fc58c01c5 100644 (file)
@@ -17,7 +17,7 @@
 
 # Skip this test if btrace is disabled.
 
-require !skip_btrace_tests !skip_python_tests
+require allow_btrace_tests !skip_python_tests
 
 load_lib gdb-python.exp
 
index 8d817dfa682c9e69c7ffcc35324476038a0846f4..40a12612b3e6bbc667597f89576a037f7ce1eaf1 100644 (file)
@@ -3801,22 +3801,22 @@ gdb_caching_proc allow_avx512fp16_tests {
     return $allow_avx512fp16_tests
 }
 
-# Run a test on the target to see if it supports btrace hardware.  Return 0 if so,
-# 1 if it does not.  Based on 'check_vmx_hw_available' from the GCC testsuite.
+# Run a test on the target to see if it supports btrace hardware.  Return 1 if so,
+# 0 if it does not.  Based on 'check_vmx_hw_available' from the GCC testsuite.
 
-gdb_caching_proc skip_btrace_tests {
+gdb_caching_proc allow_btrace_tests {
     global srcdir subdir gdb_prompt inferior_exited_re
 
-    set me "skip_btrace_tests"
+    set me "allow_btrace_tests"
     if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } {
-        verbose "$me:  target does not support btrace, returning 1" 2
-        return 1
+       verbose "$me:  target does not support btrace, returning 0" 2
+       return 0
     }
 
     # Compile a test program.
     set src { int main() { return 0; } }
     if {![gdb_simple_compile $me $src executable]} {
-        return 1
+       return 0
     }
 
     # No error message, compilation succeeded so now run it via gdb.
@@ -3826,29 +3826,29 @@ gdb_caching_proc skip_btrace_tests {
     gdb_reinitialize_dir $srcdir/$subdir
     gdb_load $obj
     if ![runto_main] {
-        return 1
+       return 0
     }
     # In case of an unexpected output, we return 2 as a fail value.
-    set skip_btrace_tests 2
+    set allow_btrace_tests 2
     gdb_test_multiple "record btrace" "check btrace support" {
         -re "You can't do that when your target is.*\r\n$gdb_prompt $" {
-            set skip_btrace_tests 1
+           set allow_btrace_tests 0
         }
         -re "Target does not support branch tracing.*\r\n$gdb_prompt $" {
-            set skip_btrace_tests 1
+           set allow_btrace_tests 0
         }
         -re "Could not enable branch tracing.*\r\n$gdb_prompt $" {
-            set skip_btrace_tests 1
+           set allow_btrace_tests 0
         }
         -re "^record btrace\r\n$gdb_prompt $" {
-            set skip_btrace_tests 0
+           set allow_btrace_tests 1
         }
     }
     gdb_exit
     remote_file build delete $obj
 
-    verbose "$me:  returning $skip_btrace_tests" 2
-    return $skip_btrace_tests
+    verbose "$me:  returning $allow_btrace_tests" 2
+    return $allow_btrace_tests
 }
 
 # Run a test on the target to see if it supports btrace pt hardware.