This patch manually changes the "return -1" and "return 0" statements
that weren't caught by the sed command.
This happened only in one testcase due to the statements being inside a
foreach_with_prefix block, and in the others because the return
statement was in a misaligned line, which is now fixed.
---
gdb/testsuite/gdb.arch/riscv-bp-infcall.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-info-fcsr.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-reg-aliases.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
@@ -23,11 +23,11 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
return
}
if {![runto_main]} {
- return 0
+ return
}
# Figure out where the breakpoint will be placed taking account for
# stack alignment, and allocation of the dummy code area.
set bp_addr [get_valueof "/x" "\$sp" 0]
@@ -23,11 +23,11 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
return
}
if {![runto_main]} {
- return 0
+ return
}
# Merge FFLAGS_VALUE and FRM_VALUE into a single hexadecimal value
# that can be written to the fcsr register. The two arguments should
# be the value of each of the two fields within the fcsr register.
@@ -20,11 +20,11 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
return
}
if {![runto_main]} {
- return 0
+ return
}
# A list for all the integer register names and their aliases. The format is
# a list with each entry being itself a list, the first item being the primary
@@ -31,15 +31,15 @@ foreach_with_prefix {insn_size} {6 8} {
set flags [list debug additional_flags=-DBAD_INSN_LEN=${insn_size}]
set testfile "${testfile}-${insn_size}"
if {[prepare_for_testing "failed to prepare" $testfile \
"$srcfile $srcfile2" $flags]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "bar"
gdb_continue_to_breakpoint "bar"