From: Thiago Jung Bauermann Date: Wed, 29 Apr 2026 23:03:59 +0000 (-0300) Subject: GDB: testsuite: riscv: Don't return value from top-level (manual) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d7056b7c94de782294e645ba1e2173ce76c1a9f4;p=thirdparty%2Fbinutils-gdb.git GDB: testsuite: riscv: Don't return value from top-level (manual) 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 --- diff --git a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp index 7d5e27debda..9e67e303dac 100644 --- a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp +++ b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp @@ -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 diff --git a/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp b/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp index 930f1b24c4e..df9aa97025b 100644 --- a/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp +++ b/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp @@ -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 diff --git a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp index 998f4f485d3..d1d98327403 100644 --- a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp +++ b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp @@ -22,7 +22,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { } if {![runto_main]} { - return 0 + return } diff --git a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp index 7be5316bcfb..b49d466b15f 100644 --- a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp +++ b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp @@ -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"