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

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-unwind-long-insn.exp

index 7d5e27debda6b06b092daa7702a0ec7e0ebc4ad4..9e67e303dacb8993af2839088b409d1b2dcb83dd 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 }
 
 if {![runto_main]} {
-   return 0
+    return
 }
 
 # Figure out where the breakpoint will be placed taking account for
index 930f1b24c4e7a01a79a1840b001e7d0568620137..df9aa97025b7ffbc3c1e1737d434cdc5173a5944 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 }
 
 if {![runto_main]} {
-   return 0
+    return
 }
 
 # Merge FFLAGS_VALUE and FRM_VALUE into a single hexadecimal value
index 998f4f485d37138b24f68b1ce8c43a2a45178269..d1d98327403a790ffcd5941c1237237615ca59c5 100644 (file)
@@ -22,7 +22,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 }
 
 if {![runto_main]} {
-   return 0
+    return
 }
 
 
index 7be5316bcfb0ef1d873ee9bb4157e46c7188e56d..b49d466b15f273d30bd7af5dc96feb7acace9f94 100644 (file)
@@ -33,11 +33,11 @@ foreach_with_prefix {insn_size} {6 8} {
     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"