@@ -35,15 +35,15 @@ require allow_aarch64_mops_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug additional_flags=-march=armv9.3-a]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "record full"
foreach_with_prefix insn_prefix {"set" "cpy" "cpyf"} {
@@ -25,15 +25,15 @@ if {[info exists COMPILE]} {
} else {
require is_x86_64_m64_target
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
if {[supports_process_record]} {
gdb_test_no_output "record"
}
@@ -22,11 +22,11 @@
require supports_process_record
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
gdb_test_no_output "record" "turn on process record"
@@ -21,11 +21,11 @@ require supports_process_record
standard_testfile break-reverse.c
set precsave [standard_output_file break.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
set foo_location [gdb_get_line_number "break in foo" ]
set bar_location [gdb_get_line_number "break in bar" ]
set main_location [gdb_get_line_number "break in main"]
@@ -19,11 +19,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
set foo_location [gdb_get_line_number "break in foo" ]
set bar_location [gdb_get_line_number "break in bar" ]
set main_location [gdb_get_line_number "break in main"]
@@ -21,11 +21,11 @@ require supports_process_record
standard_testfile consecutive-reverse.c
set precsave [standard_output_file consecutive.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
# Activate process record/replay
@@ -19,11 +19,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -20,11 +20,11 @@ require supports_reverse
standard_testfile finish-reverse.c
set precsave [standard_output_file finish.precsave]
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -43,11 +43,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -46,11 +46,11 @@ if {![supports_reverse]} {
}
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -19,11 +19,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -22,11 +22,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -23,11 +23,11 @@ require supports_reverse
require {have_system_header sys/random.h}
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -22,11 +22,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -39,11 +39,11 @@ standard_testfile
set additional_flags [gdb_target_symbol_prefix_flags]
lappend_include_file alloc_lib $srcdir/lib/precise-aligned-alloc.c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags $alloc_lib]]} {
- return -1
+ return
}
# Shorthand to test reversing through one instruction and
# testing if a register has the expected value.
# Prefix, if included, should end with a colon and space.
@@ -28,11 +28,11 @@ set precsave [standard_output_file i386.precsave]
# some targets have leading underscores on assembly symbols.
set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
set end_of_main [gdb_get_line_number " end of main "]
set end_of_inc_dec_tests [gdb_get_line_number " end inc_dec_tests "]
@@ -26,11 +26,11 @@ standard_testfile
# some targets have leading underscores on assembly symbols.
set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
set end_of_main [gdb_get_line_number " end of main "]
set end_of_inc_dec_tests [gdb_get_line_number " end inc_dec_tests "]
@@ -31,11 +31,11 @@ standard_testfile
# some targets have leading underscores on assembly symbols.
set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
set end_of_main [gdb_get_line_number " end of main "]
set end_sse_test [gdb_get_line_number " end sse_test "]
set end_ssse3_test [gdb_get_line_number " end ssse3_test "]
@@ -23,11 +23,11 @@ standard_testfile
# some targets have leading underscores on assembly symbols.
set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
runto_main
# Record to end of main
@@ -23,11 +23,11 @@ standard_testfile
# some targets have leading underscores on assembly symbols.
set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
runto_main
# Record to end of main
@@ -17,11 +17,11 @@ require supports_reverse !use_gdb_stub
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug]]} {
- return -1
+ return
}
if {![runto_main]} {
return
}
@@ -41,11 +41,11 @@ require supports_process_record
standard_testfile machinestate.c ms1.c
set precsave [standard_output_file machinestate.precsave]
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set newline "\[\r\n\]+"
set beginmain [gdb_get_line_number " begin main " $srcfile]
@@ -39,11 +39,11 @@ require supports_reverse
standard_testfile .c ms1.c
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set newline "\[\r\n\]+"
set beginmain [gdb_get_line_number " begin main " $srcfile]
@@ -28,11 +28,11 @@ if {![supports_reverse]} {
}
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
proc test_print { has_history level test_name } {
gdb_test_multiple "maint print record-instruction $level" $test_name {
-re -wrap ".*Not enough recorded history.*" {
@@ -31,11 +31,11 @@ require is_c_compiler_gcc
require supports_reverse
standard_testfile .c .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set asm_file [standard_output_file $srcfile2]
Dwarf::assemble $asm_file {
global srcdir subdir srcfile
@@ -107,11 +107,11 @@ Dwarf::assemble $asm_file {
}
}
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug} ] } {
- return -1
+ return
}
if { ![runto_main] } {
return
}
@@ -43,11 +43,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -22,11 +22,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -38,11 +38,11 @@ set executable record_test_isa_2_06
set options [list debug]
require {istarget "powerpc*"}
if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} {
- return -1
+ return
}
clean_restart $executable
if {![runto_main]} {
@@ -39,11 +39,11 @@ set executable record_test_isa_3_1
require {istarget "powerpc*"} allow_power_isa_3_1_tests
set options [list additional_flags=-mcpu=power10 debug]
if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} {
- return -1
+ return
}
clean_restart $executable
if {![runto_main]} {
@@ -22,11 +22,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -19,11 +19,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -22,11 +22,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -16,11 +16,11 @@
require supports_reverse supports_process_record
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile]]} {
- return -1
+ return
}
# The bug is a regression in the sequence "run; record; run".
runto_main
gdb_test_no_output "record" "turn on process record"
@@ -20,11 +20,11 @@
require supports_reverse {istarget "s390*-*-*"}
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -19,11 +19,11 @@ require supports_reverse
standard_testfile sigall-reverse.c
set precsave [standard_output_file sigall.precsave]
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
proc test_one_sig {nextsig} {
global sig_supported
global gdb_prompt
@@ -18,11 +18,11 @@ require {!target_info exists gdb,nosignals}
require supports_reverse
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
proc test_one_sig {nextsig} {
global sig_supported
global gdb_prompt
@@ -35,11 +35,11 @@ if {[info exists COMPILE]} {
}
clean_restart $executable
if {![runto_main]} {
- return -1
+ return
}
if {[supports_process_record]} {
gdb_test_no_output "record"
}
@@ -30,16 +30,16 @@ set library2 [standard_output_file ${lib2file}.sl]
# Compile the first without debug info so that
# stepping and reverse stepping doesn't end up inside them.
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib1src} ${library1} ""] != "" } {
untested "failed to compile shared library 1"
- return -1
+ return
}
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib2src} ${library2} "debug"] != "" } {
untested "failed to compile shared library 2"
- return -1
+ return
}
set exec_opts [list debug shlib=${library1} shlib=${library2}]
# Attempt to prevent -Wl,-z,relro which may happen by default with some
@@ -48,11 +48,11 @@ set exec_opts [list debug shlib=${library1} shlib=${library2}]
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable \
[concat $exec_opts ldflags=-Wl,-z,norelro]] != ""
&& [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Note: The test previously did "set debug-file-directory" to (try to)
# ensure the debug info for the dynamic loader and libc weren't found.
# This doesn't work if the debug info is in the .debug subdirectory.
@@ -28,23 +28,23 @@ set library2 [standard_output_file ${lib2file}.sl]
# Compile the first without debug info so that
# stepping and reverse stepping doesn't end up inside them.
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib1src} ${library1} ""] != "" } {
untested "failed to compile shared library 1"
- return -1
+ return
}
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib2src} ${library2} "debug"] != "" } {
untested "failed to compile shared library 2"
- return -1
+ return
}
set exec_opts [list debug shlib=${library1} shlib=${library2}]
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Note: The test previously did "set debug-file-directory" to (try to)
# ensure the debug info for the dynamic loader and libc weren't found.
# This doesn't work if the debug info is in the .debug subdirectory.
@@ -29,15 +29,15 @@ if { [gdb_can_simple_compile fcf-protection-none {int main () { return 0; }} \
executable $fcf_protection_none] } {
lappend cflags $fcf_protection_none
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $cflags] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
gdb_test_no_output "record"
gdb_test "next" ".*" "record trace"
@@ -25,11 +25,11 @@ require supports_process_record
standard_testfile step-reverse.c
set precsave [standard_output_file step.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
# Activate process record/replay
@@ -23,11 +23,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -19,11 +19,11 @@
require supports_process_record
standard_testfile .c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
untested "could not run to main"
continue
@@ -22,11 +22,11 @@ require supports_process_record
standard_testfile until-reverse.c ur1.c
set precsave [standard_output_file until.precsave]
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
set bp_location7 [gdb_get_line_number "set breakpoint 7 here"]
set bp_location8 [gdb_get_line_number "set breakpoint 8 here" "$srcfile2"]
@@ -20,11 +20,11 @@ require supports_reverse
standard_testfile .c ur1.c
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
set bp_location7 [gdb_get_line_number "set breakpoint 7 here"]
set bp_location8 [gdb_get_line_number "set breakpoint 8 here" "$srcfile2"]
@@ -24,11 +24,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {
@@ -22,11 +22,11 @@ require supports_process_record
standard_testfile watch-reverse.c
set precsave [standard_output_file watch.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
# Activate process record/replay
@@ -21,11 +21,11 @@
require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
if {[supports_process_record]} {