This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' riscv*.exp*
and
$ sed -i 's/^ return 0/ return/' riscv*.exp*
inside gdb/testsuite/gdb.arch.
---
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-tdesc-regs.exp | 8 ++++----
.../gdb.arch/riscv64-unwind-prologue-with-c_li.exp | 4 ++--
.../gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp | 4 ++--
.../gdb.arch/riscv64-unwind-prologue-with-mv.exp | 4 ++--
7 files changed, 13 insertions(+), 13 deletions(-)
@@ -19,11 +19,11 @@
require {istarget "riscv*-*-*"}
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -19,11 +19,11 @@
require {istarget "riscv*-*-*"} allow_float_test
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -16,11 +16,11 @@
require {istarget "riscv*-*-*"}
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
return 0
}
@@ -22,15 +22,15 @@ require {istarget "riscv*-*-*"}
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug quiet}] } {
unsupported "failed to compile"
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
# First, figure out if we are 32-bit or 64-bit.
set xlen [get_valueof "/d" "sizeof (\$a0)" 0]
set flen [get_valueof "/d" "sizeof (\$fa0)" 0]
@@ -38,20 +38,20 @@ set flen [get_valueof "/d" "sizeof (\$fa0)" 0]
gdb_assert { $xlen != 0 && $flen != 0 } "read xlen and flen"
# We only handle 32-bit or 64-bit x-registers.
if { $xlen != 4 && $xlen != 8 } {
unsupported "unknown x-register size"
- return -1
+ return
}
# If FLEN is 1 then the target doesn't have floating point support
# (the register $fa0 was not recognised). Otherwise, we can only
# proceed if FLEN equals XLEN, otherwise we'd need more test XML
# files.
if { $flen != 1 && $flen != $xlen } {
unsupport "unknown xlen/flen combination"
- return -1
+ return
}
if { $xlen == 4 } {
set xml_tdesc "riscv-tdesc-regs-32.xml"
} else {
@@ -21,15 +21,15 @@ require {istarget "riscv64-*-*"}
standard_testfile .c -foo.s
if {[prepare_for_testing "failed to prepare" $testfile \
"$srcfile $srcfile2" nodebug]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "bar"
gdb_continue_to_breakpoint "bar"
gdb_test "bt" \
@@ -20,15 +20,15 @@ require {istarget "riscv64-*-*"}
standard_testfile riscv64-unwind-prologue-with-ld-lw.c \
riscv64-unwind-prologue-with-ld-lw-foo.s
if {[prepare_for_testing "failed to prepare" $testfile \
"$srcfile $srcfile2" nodebug]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "bar"
gdb_continue_to_breakpoint "bar"
gdb_test "bt" \
@@ -19,16 +19,16 @@
require {istarget "riscv64-*-*"}
standard_testfile .c .s
if {[prepare_for_testing "failed to prepare" $testfile \
"$srcfile $srcfile2" nodebug]} {
- return -1
+ return
}
if {![runto_main]} {
fail "can't run to main"
- return 0
+ return
}
gdb_breakpoint "bar"
gdb_continue_to_breakpoint "bar"
gdb_test "bt" \