[binutils-gdb] GDB: testsuite: riscv: Don't return value from top-level (manual)
Thiago Bauermann via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d7056b7c94de782294e645ba1e2173ce76c1a9f4 commit d7056b7c94de782294e645ba1e2173ce76c1a9f4 Author: Thiago Jung Bauermann <[email protected]> Date: Wed Apr 29 20:03:59 2026 -0300 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 <[email protected]> Diff: --- 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(-) 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"