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"
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
if {[supports_process_record]} {
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
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" ]
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 precsave [standard_output_file consecutive.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
set precsave [standard_output_file finish.precsave]
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
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
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 "]
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 "]
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 "]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
runto_main
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
runto_main
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug]]} {
- return -1
+ return
}
if {![runto_main]} {
return
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set newline "\[\r\n\]+"
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set newline "\[\r\n\]+"
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
proc test_print { has_history level test_name } {
standard_testfile .c .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set asm_file [standard_output_file $srcfile2]
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug} ] } {
- return -1
+ return
}
if { ![runto_main] } {
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
require {istarget "powerpc*"}
if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} {
- return -1
+ return
}
clean_restart $executable
set options [list additional_flags=-mcpu=power10 debug]
if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} {
- return -1
+ return
}
clean_restart $executable
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
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".
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
set precsave [standard_output_file sigall.precsave]
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
proc test_one_sig {nextsig} {
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
proc test_one_sig {nextsig} {
clean_restart $executable
if {![runto_main]} {
- return -1
+ return
}
if {[supports_process_record]} {
# 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}]
[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)
# 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)
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $cflags] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
gdb_test_no_output "record"
set precsave [standard_output_file step.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile .c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
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"]
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"]
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
set precsave [standard_output_file watch.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main