mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-10 09:59:06 +08:00
Use require supports_reverse
This changes some tests to use "require supports_reverse".
This commit is contained in:
@ -27,9 +27,7 @@
|
||||
# but to verify the correct output response to MI operations.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
load_lib mi-support.exp
|
||||
set MIFLAGS "-i=mi"
|
||||
|
@ -13,9 +13,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/>.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
set opts {}
|
||||
standard_testfile .S
|
||||
|
@ -16,9 +16,7 @@
|
||||
# This file is part of the GDB testsuite. It tests reverse debugging
|
||||
# with breakpoints.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -16,9 +16,7 @@
|
||||
# This file is part of the GDB testsuite. It tests stepping over
|
||||
# consecutive instructions in reverse.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -16,9 +16,7 @@
|
||||
# This file is part of the GDB testsuite. It tests 'finish' with
|
||||
# reverse debugging.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile finish-reverse.c
|
||||
set precsave [standard_output_file finish.precsave]
|
||||
|
@ -40,9 +40,7 @@
|
||||
# addition to non-PowerPC systems. On non-PowerPC systems, the GEP and LEP
|
||||
# are the same.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -16,9 +16,7 @@
|
||||
# This file is part of the GDB testsuite. It tests 'finish' with
|
||||
# reverse debugging.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -19,9 +19,7 @@
|
||||
# This test tests fstatat syscall for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -19,9 +19,7 @@
|
||||
# This test tests getrandom syscall for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -19,9 +19,7 @@
|
||||
# This test tests getresuid/getresgid syscalls for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -19,10 +19,7 @@
|
||||
# This test tests some i386 general instructions for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
|
||||
require supports_reverse
|
||||
|
||||
if {![is_x86_like_target]} {
|
||||
verbose "Skipping i386 reverse tests."
|
||||
|
@ -19,10 +19,7 @@
|
||||
# This test tests some i386 general instructions for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
|
||||
require supports_reverse
|
||||
|
||||
if {![istarget "*86*-*linux*"]} {
|
||||
verbose "Skipping i386 reverse tests."
|
||||
|
@ -13,12 +13,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/>.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
|
||||
# Check if start command is supported.
|
||||
require !use_gdb_stub
|
||||
require supports_reverse !use_gdb_stub
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -35,9 +35,7 @@
|
||||
# Test forward replay
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile .c ms1.c
|
||||
|
||||
|
@ -40,9 +40,7 @@
|
||||
# addition to non-PowerPC systems. On non-PowerPC systems, the GEP and LEP
|
||||
# are the same.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -19,9 +19,7 @@
|
||||
# This test tests pipe syscall for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -19,9 +19,7 @@
|
||||
# This test tests readv syscall for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -19,9 +19,7 @@
|
||||
# This test tests socketpair and recvmsg syscalls for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -13,9 +13,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/>. */
|
||||
|
||||
if {![supports_reverse] || ![supports_process_record]} {
|
||||
return
|
||||
}
|
||||
require supports_reverse supports_process_record
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -17,9 +17,7 @@
|
||||
# This test tests s390 MVCLE opcode for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
if { ! [istarget "s390*-*-*"] } {
|
||||
verbose "Skipping s390 MVCLE instruction recording tests."
|
||||
|
@ -18,10 +18,7 @@ if [target_info exists gdb,nosignals] {
|
||||
return
|
||||
}
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
|
||||
require supports_reverse
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
|
@ -18,10 +18,7 @@ if [target_info exists gdb,nosignals] {
|
||||
return
|
||||
}
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
|
||||
require supports_reverse
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
|
@ -13,9 +13,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/>.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile ".S" "${gdb_test_file_name}-nodebug.S"
|
||||
set executable ${testfile}
|
||||
|
@ -16,12 +16,7 @@
|
||||
# This file is part of the GDB testsuite. It tests reverse debugging
|
||||
# with shared libraries.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
if {[skip_shlib_tests]} {
|
||||
return
|
||||
}
|
||||
require supports_reverse !skip_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
set lib1file "shr1"
|
||||
|
@ -13,10 +13,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/>.
|
||||
|
||||
if { ![supports_reverse] } {
|
||||
untested "target does not support record"
|
||||
return -1
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -20,9 +20,7 @@
|
||||
# Test step and next in reverse
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -19,9 +19,7 @@
|
||||
# This test tests time syscall for reverse execution.
|
||||
#
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -16,9 +16,7 @@
|
||||
# This file is part of the GDB testsuite. It tests 'until' and
|
||||
# 'advance' in reverse debugging.
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile .c ur1.c
|
||||
|
||||
|
@ -21,9 +21,7 @@
|
||||
# Also serves as regression test for gdb/19187 (recording across a
|
||||
# fork).
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -18,9 +18,7 @@
|
||||
# with watchpoints.
|
||||
|
||||
|
||||
if ![supports_reverse] {
|
||||
return
|
||||
}
|
||||
require supports_reverse
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
Reference in New Issue
Block a user