This patch manually changes the "return -1" statements that weren't
caught by the sed command.
In aarch64-prologue.exp and arm-cmse-sgstubs.exp, this was caused by a
misaligned line, which is now fixed.
In aarch64-mte.exp, aarch64-non-address-bits.exp,
arm-pthread_cond_timedwait-bt.exp and thumb2-it.exp this is because the
return statements have extra indentation due to being inside
with_test_prefix, save_vars or gdb_test_multiple blocks.
Approved-By: Tom Tromey <tom@tromey.com>
if {$ltag == -1} {
unresolved "unexpected tag value"
- return -1
+ return
}
set atag [expr {($ltag + 1) % 16}]
# Restart to execute the async tag fault test.
with_test_prefix "async" {
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "access_memory"
if {[gdb_continue "access_memory"]} {
fail "could not run to tagged memory test function"
- return -1
+ return
}
# Force a tag fault.
}
-re ".*$gdb_prompt $" {
fail $gdb_test_name
- return 1
+ return
}
}
}
if {![runto_main]} {
- return -1
+ return
}
# Ensure gdb can break at excessiveprologue then continue.
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "si" "0x.*" "branch to func from main"
save_vars { GDBFLAGS } {
append GDBFLAGS " --readnever"
if { [clean_restart $testfile] == -1 } {
- return -1
+ return
}
}
-re ".*@ No Thumb-2.*$gdb_prompt $" {
pass "list main"
untested "skipping tests due to lack of Thumb-2"
- return -1
+ return
}
-re ".*@ Thumb-2 OK.*$gdb_prompt $" {
pass "list main"