]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: riscv: Don't return value from top-level (sed)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:03:58 +0000 (20:03 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 8 May 2026 21:49:23 +0000 (21:49 +0000)
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.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.arch/riscv-bp-infcall.exp
gdb/testsuite/gdb.arch/riscv-info-fcsr.exp
gdb/testsuite/gdb.arch/riscv-reg-aliases.exp
gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp
gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp

index adb937e9fea47f19f89384dc6ad7af8652d7168e..7d5e27debda6b06b092daa7702a0ec7e0ebc4ad4 100644 (file)
@@ -21,7 +21,7 @@ require {istarget "riscv*-*-*"}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 5d252beca30538dfb2c186af763b62d68e12012b..930f1b24c4e7a01a79a1840b001e7d0568620137 100644 (file)
@@ -21,7 +21,7 @@ require {istarget "riscv*-*-*"} allow_float_test
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index eb1caf879224b58706bdd26901473f6c89f08c24..998f4f485d37138b24f68b1ce8c43a2a45178269 100644 (file)
@@ -18,7 +18,7 @@ require {istarget "riscv*-*-*"}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 707777cb0df19f1ec81080078614306e81b6683c..10415fccd0400dd9eb991b16235ec0d28840bf6a 100644 (file)
@@ -24,11 +24,11 @@ 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.
@@ -40,7 +40,7 @@ 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
@@ -49,7 +49,7 @@ if { $xlen != 4 && $xlen != 8 } {
 # files.
 if { $flen != 1 && $flen != $xlen } {
     unsupport "unknown xlen/flen combination"
-    return -1
+    return
 }
 
 if { $xlen == 4 } {
index c175f0934b3caa0daa2d8f5186315f78ddc91f03..495a720ba7c8f2cc49d83e7ab57a4cba4ea15f24 100644 (file)
@@ -23,11 +23,11 @@ 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"
index dff317bd6155442a1125416d35305c8919bc8426..b665dd4f4047c6849c8bd9b148ef9dcc47f70607 100644 (file)
@@ -22,11 +22,11 @@ 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"
index 2afe1723a6e2db98aeb2491603a28883f5f4a9fc..e0f66ac7f9e119ffdca5dd6716436f0c0ee1a375 100644 (file)
@@ -21,12 +21,12 @@ 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"