From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CYWZLvKO8mnTZgQAWB0awg (envelope-from ) for ; Wed, 29 Apr 2026 19:06:26 -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=T8CvnfTC; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id BAAF41E0CA; Wed, 29 Apr 2026 19:06:26 -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_MSPIKE_H2,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 4258C1E093 for ; Wed, 29 Apr 2026 19:06:23 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id DF8EB4358A7D for ; Wed, 29 Apr 2026 23:06:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF8EB4358A7D 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=T8CvnfTC Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by sourceware.org (Postfix) with ESMTPS id 1030F4358A68 for ; Wed, 29 Apr 2026 23:05:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1030F4358A68 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 1030F4358A68 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::933 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777503900; cv=none; b=xYwebbx0mSr3p7qgyNfgUzwdHzqS9jQYAaeK1UaLG8eVMmQv+eeRxB78QwjPonUhFHYTLtzRmXakQXxFeGLx0d79yPsS1mXxhaK/8YXE6mLQhizcePdV3weIi6WiQCxQZDeCZIuT5SJEz0a7//KZMj3JJzDDM5k/eskaTqzyyyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777503900; c=relaxed/simple; bh=dJsn5TiNU+oOWltZFJdD676JrJeLmml8G40mdOcTgxM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CbnSi3+hXfzAL8HS4M/EUVvVL8HWjVQgsWt5pbPcu9ai6aKiR8sRx9Sxprl7X4OiP4BmsPKTYCQCSqfdKBFOrhBFgi5S8Il7FQF20oGo1jD3SC1n+8EaXF5/JjNImUiwsnyrUMFb35I0g7ckDW4krgGvbKKVW7JtmmeEw1WGPxs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1030F4358A68 Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-944168e8c5fso199797241.2 for ; Wed, 29 Apr 2026 16:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777503899; x=1778108699; 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=B8WzwU8gtg4koLKSDqZQrm0YKHPYUZ1X/pEG8ZwgLeg=; b=T8CvnfTCXEbAGMYtVFeIFtGRiMxD1GepU1ai3RdFMCdnH6ZfcvsbrOleNcEXA/bhnG ImwcAB+0JYP/rz02fXltBa54YRSZhyN2okS5uv8pOaMVB3OicaQgqqtgf29A785/+wRd NznDcfMZ/jdAZ0e6heezEa/zT3NwfXpiCbOSAKGTOMLpzYnZhvKUrQ08H1No8QvE9258 xOV0MpbXvi2fSVxzuNseHz94VMk/Lh/U8Lh00ChZCkuMihDJbOElQ2UKcJNbmesXnglY NFs4dbwPNjjymysD1akv1CgKYT7cbR9B6xqJ90nBGJVEaBauqNWzV7YV0C44P8p4XzL6 0rGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777503899; x=1778108699; 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=B8WzwU8gtg4koLKSDqZQrm0YKHPYUZ1X/pEG8ZwgLeg=; b=RCjN0c3tKRKASS6jt4c7Lb+Hc7cHMr1tUwc4yzkAfkjL6ZhhI+DSUXyyVwsujjkIip 9KpAl/Do5znuqAviGJriCOizOZphXcvZ7SK54rJIF/MVG0vIVFVuP5iEXHRHtZYua9ip zwOgC9U1XoS7zUB43SgioA0jDu8/jFGlsHLoAjW3/Ou+a+lgPLQ2n5iDg8bUbspW37jN sJ+V6BlDDK8r3BHnBK2pzjHT7YfVGal1Hz4wU/I2e/btolG7C2nmDSI1KWp+5qNnVLwr O2F+O10ap13Sjnu3Fypp5PfEt1Y2TcFGr+QbTeMN5L9zll5emk6xdRxKxlZgvWfJIAx2 +s9A== X-Gm-Message-State: AOJu0Yxm65PbZlYHXkuJfJIB33YlwshQoPbyYfSCLtEr9pyknuYmHn56 30Sw6zj7I/jWmxJw6omlSJnHL7wE4BSFnWT1/Ck5e4MOvLZcolP6gcRoIDVYgNqz+zcbKnYbfLN sUjHE X-Gm-Gg: AeBDies7sTjMmnX1ax7ciiJbaPDR9P4b914H9I0+Exhh+CdyMJPeXV4/tvMQlvbhHV9 qCgCHGkuW7ORGnGxXkBQkWo5/rg3PwBfHefAjwdJwRP+pxxQ58/Rf0viWR6DUXkTdNLm3Dou28/ i84ytC2+/EU1SZd66jt6azBy1QOEIzqh3jTtW0Rr0rQ6XxPpJ1gO24EWrwc0gvfuY+3TG2ZY5I+ kwlPI+1FkQk1/CyOz1qSxYlxAXdRjQEg3i3C7+a+wLHjnkux/BIzlV37qnmpGYw9NuwIAsu/m/P II4qeBpvSY0lXK39FJTm9E6oX3pDe61RThDwQko9a9rS8kzXs9SZ0/zTaEBeFMw9WG+PotSRzna EOyr8Mbqqb3XiDymyvLOInqWLEemyesygHYvQczooMLqmDluNRrzrfvgGvzp8PQbmhm5SeCGpLk riizIHPNC30SIMQFC2Ee6UhwzgxmHYy8MNTZlzr2CbWDLJDPblv7b7nuY= X-Received: by 2002:a05:6102:a4a:b0:60c:3f9d:6a0b with SMTP id ada2fe7eead31-62ad21380b4mr314169137.1.1777503899473; Wed, 29 Apr 2026 16:04:59 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-95cb77bfca0sm1766523241.11.2026.04.29.16.04.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 16:04:59 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH v2 07/37] GDB: testsuite: riscv: Don't return value from top-level (sed) Date: Wed, 29 Apr 2026 20:03:58 -0300 Message-ID: <20260429230432.60487-8-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260429230432.60487-1-thiago.bauermann@linaro.org> References: <20260429230432.60487-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* and $ sed -i 's/^ return 0/ 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 | 4 ++-- .../gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp | 4 ++-- .../gdb.arch/riscv64-unwind-prologue-with-mv.exp | 4 ++-- 7 files changed, 13 insertions(+), 13 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 @@ -19,11 +19,11 @@ require {istarget "riscv*-*-*"} standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { - return -1 + return } if {![runto_main]} { return 0 } 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 @@ -19,11 +19,11 @@ require {istarget "riscv*-*-*"} allow_float_test standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { - return -1 + return } if {![runto_main]} { return 0 } 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 @@ -16,11 +16,11 @@ require {istarget "riscv*-*-*"} standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { - return -1 + return } if {![runto_main]} { return 0 } 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 @@ -22,15 +22,15 @@ require {istarget "riscv*-*-*"} 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. set xlen [get_valueof "/d" "sizeof (\$a0)" 0] set flen [get_valueof "/d" "sizeof (\$fa0)" 0] @@ -38,20 +38,20 @@ set flen [get_valueof "/d" "sizeof (\$fa0)" 0] 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 # (the register $fa0 was not recognised). Otherwise, we can only # proceed if FLEN equals XLEN, otherwise we'd need more test XML # files. if { $flen != 1 && $flen != $xlen } { unsupport "unknown xlen/flen combination" - return -1 + return } if { $xlen == 4 } { set xml_tdesc "riscv-tdesc-regs-32.xml" } else { 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..495a720ba7c8 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 @@ -21,15 +21,15 @@ require {istarget "riscv64-*-*"} 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" gdb_continue_to_breakpoint "bar" gdb_test "bt" \ 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..b665dd4f4047 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 @@ -20,15 +20,15 @@ require {istarget "riscv64-*-*"} 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" gdb_continue_to_breakpoint "bar" gdb_test "bt" \ 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..e0f66ac7f9e1 100644 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp @@ -19,16 +19,16 @@ 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" gdb_continue_to_breakpoint "bar" gdb_test "bt" \