From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id qTaMF4YE72n/4z0AWB0awg (envelope-from ) for ; Mon, 27 Apr 2026 02:39:02 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=jS1IixMs; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 552361E0CA; Mon, 27 Apr 2026 02:39:02 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id F3E191E093 for ; Mon, 27 Apr 2026 02:39:00 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 947314B99F53 for ; Mon, 27 Apr 2026 06:39:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 947314B99F53 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=jS1IixMs Received: from mail-dy1-x132d.google.com (mail-dy1-x132d.google.com [IPv6:2607:f8b0:4864:20::132d]) by sourceware.org (Postfix) with ESMTPS id E17A84B99F53 for ; Mon, 27 Apr 2026 06:35:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E17A84B99F53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E17A84B99F53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::132d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271734; cv=none; b=DLrMsYrijxxgwI31FXfRfiykqVP85z5C1FyZMBCTBhr4NxNAFmhTzANqkd8L9weZh/qQ3Bsr4AmdoRLOVVLfIZmNHFNGNMz+kDnBeOTZsp2VYiER2pvofHg0gtm1oDF2HqcAL6Q1Aq7lwlBKKElWOQzjVgZJe1eOlzt12gKzDXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271734; c=relaxed/simple; bh=dltAI+0M1vERLozvk0NdlP6H5E4gN195ZsVwf23pOg8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=AfTCWTPAaRfWkcXEa8QuH+Fgxx6m+aakZ0XMEXfT0dcgJM6EfSqoV4WVgfaqhkIe5WzZbrghN7gAC5OYy/rsJADD9ZyrMhq37GTce7f32qN08iZLGPCYoNw7EksHMx78rprx4yattVbRL4XJrDnovqxF8z3wAyrZ4D0T0oe/ajM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E17A84B99F53 Received: by mail-dy1-x132d.google.com with SMTP id 5a478bee46e88-2b6b0500e06so15023070eec.1 for ; Sun, 26 Apr 2026 23:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777271733; x=1777876533; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1lfua58v4GiPsC7FkbiMv34glrHOh9kh9NSy1r3ty0w=; b=jS1IixMsi2gWO91cWZeRFZBvCUehbXoW6vlhrQ0G1FbuJiLn3/JooS16t5sIukOCTJ pwc4SyQDP1ctfBZKTvS72KTX0qEdNC26zQVf6iv+LhZpEDFQ/F0FKWBQsvl6hk7v83KU UCMZXcp3CCgbeBMWR9PGjGH7QcQsCM4A5axd1xmdH1+6Vb5g8U0VO7w4jUGLlYk0nAix 9yj0kq45rTDf0ToR4NpDP6/5jyEqZuwKCVXdPIa5Iye85dnRNdtvUBJXRzswlbg9ZFvi lF0L/PuZFFzHTUqJFSdi/esh9kqyKtkPteU6ZPd3UXKY6e3YMte2fxnD98ZFgeiLnL2z ucAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777271733; x=1777876533; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=1lfua58v4GiPsC7FkbiMv34glrHOh9kh9NSy1r3ty0w=; b=Zp8f9aYIgPHNRN52pNFKpuIQyun6Tci74hU39Fl8WwAuEI2iD2RvTkZtdmYAiynsrq 4IPIS9d7oSxDn/Rof5DpECvn5pxWLwRURNj+ua0gG2Ip7LaCZ0m7vhl2t6I5dhIUfDUy 2dNvjDryWuGqv1OS/+6Yh0LtlgZn49CZd/oDplR8Bk/UBZrD1G7HCF+YpZoWDDoynWQc m6WORthV/l1QhT9Q4YemueBo95DToNjIRXweaunP7kFliGPCDv3ZsHibVRp1FfdHEqnE 3Z1MFbgA4wkEEyv+pVA9m0r/hBb7JWG7jMzswUrghEFIFZ6iE/4ncJcEm52Q0/TsSdp7 LYYA== X-Gm-Message-State: AOJu0YypnfE6zwKI6O3YW5586eYxoUkOukQdlaTwi/pIPqPst03SXqiM v0ZiqcTKSCVN7n5n7fd2uc1nVDkbuKIYggfodr48jwKm/gk2LoD0AefPdssCLSkEwUeI306jgvS 7+nFl X-Gm-Gg: AeBDietdEODGHB53ZnJBtMXtRC25mpexIbk2jGFrDfo15QLQUBVfjx8khP5Y2cxOPkh emjGVmOqtqPx/tHdHeL2vJ/QpMDR48EpwHdBsTApnhyj8GKkA+RajZlSe1DxWdtJv42Bp0Oe4Rb HMWvvrvSuH7gJ3hA2MGXfKHmWo5T1Fe1uMJ9jXGKVHKv308xwbVL3PVufDPA59JbTNsmXHmwzWO wM+NXK2AyDl+JJrFxz8bpSCyE+hcVYqIX5rrCT6m1A7UGRZ7/JQ8dPFJ//1fRkoUQP02fxkewT+ KBPO74pkjVwyZV7ize042u29fBu+yHQKYEzq8apNIdVW/L1NYsAu6BeJJKtVRdoAjPLPzIHOrql NsQvvDYCJywV+EW7FlNQWSifmNLqewQxl8P3Hq/kfI64LHopn564LTnEUM1T5BzWFxCZxSQ1ndE w0ge+vC1QMtxDlnFz/ShxeKDDSZRZ8NLXm4xoCCQc02+GORIWuUawAQMw= X-Received: by 2002:a05:7300:5728:b0:2cf:28e8:d784 with SMTP id 5a478bee46e88-2e478a3314cmr21372184eec.19.1777271732631; Sun, 26 Apr 2026 23:35:32 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:33bc:f32e:9aa5:b915]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e53d8b3dd9sm41803869eec.27.2026.04.26.23.35.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2026 23:35:32 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH 07/36] GDB: testsuite: riscv: Don't return -1 from top-level (sed) Date: Mon, 27 Apr 2026 03:34:31 -0300 Message-ID: <20260427063500.3847618-8-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260427063500.3847618-1-thiago.bauermann@linaro.org> References: <20260427063500.3847618-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This patch is purely the result of running: $ sed -i 's/^ return -1/ 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 | 2 +- .../gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp | 2 +- .../gdb.arch/riscv64-unwind-prologue-with-mv.exp | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp index adb937e9fea4..7d5e27debda6 100644 --- a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp +++ b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp @@ -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]} { diff --git a/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp b/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp index 5d252beca305..930f1b24c4e7 100644 --- a/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp +++ b/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp @@ -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]} { diff --git a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp index eb1caf879224..998f4f485d37 100644 --- a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp +++ b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp @@ -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]} { diff --git a/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp b/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp index 707777cb0df1..10415fccd040 100644 --- a/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp +++ b/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp @@ -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 } { diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp index c175f0934b3c..88289922e410 100644 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp @@ -23,7 +23,7 @@ standard_testfile .c -foo.s if {[prepare_for_testing "failed to prepare" $testfile \ "$srcfile $srcfile2" nodebug]} { - return -1 + return } if {![runto_main]} { diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp index dff317bd6155..4d67a760c1df 100644 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp @@ -22,7 +22,7 @@ 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]} { diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp index 2afe1723a6e2..e8fa0af47759 100644 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp @@ -21,7 +21,7 @@ require {istarget "riscv64-*-*"} standard_testfile .c .s if {[prepare_for_testing "failed to prepare" $testfile \ "$srcfile $srcfile2" nodebug]} { - return -1 + return } if {![runto_main]} {