This patch manually changes the "return -1" statements that weren't
caught by the sed command.
In amd64-shadow-stack-cmds.exp the return statements have extra
indentation due to being inside a save_vars block.
In i386-bp_permanent.exp this was caused by misaligned lines, which are
now fixed.
Approved-By: Tom Tromey <tom@tromey.com>
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug additional_flags="-fcf-protection=return"}] } {
- return -1
+ return
}
clean_restart ${::testfile}
if { ![runto_main] } {
- return -1
+ return
}
with_test_prefix "test inferior call and continue" {
clean_restart ${::testfile}
if { ![runto_main] } {
- return -1
+ return
}
set call1_line [ gdb_get_line_number "break call1" ]
clean_restart ${::testfile}
if { ![runto_main] } {
- return -1
+ return
}
with_test_prefix "test return from past frame" {
#
if {![runto_main]} {
- return -1
+ return
}
set function "standard"
}]
if {$retcode != 0} {
- fail "disassemble failed, skipping entire test."
- return -1
+ fail "disassemble failed, skipping entire test."
+ return
}
gdb_breakpoint "*$address_bp"