From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mSKMEz+P8mnTZgQAWB0awg (envelope-from ) for ; Wed, 29 Apr 2026 19:07:43 -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=g77V9xZP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 456921E0DA; Wed, 29 Apr 2026 19:07:43 -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 2D2F61E0BA for ; Wed, 29 Apr 2026 19:07:41 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 962544358A60 for ; Wed, 29 Apr 2026 23:07:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 962544358A60 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=g77V9xZP Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com [IPv6:2607:f8b0:4864:20::a35]) by sourceware.org (Postfix) with ESMTPS id 10A6A4358A4F for ; Wed, 29 Apr 2026 23:05:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 10A6A4358A4F 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 10A6A4358A4F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::a35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777503903; cv=none; b=yEemnAWUtifca74JZAFeo39pMsmZBrX8yy80coMzECt29kZSbNLgt0VKyqNavIarqZGJX+KFYpUj0PVSfoFYp5vPITNuk6IZ7U7OcTAaly5ecVgg0MXv/zq2Ip/k9/IcBl9eToxX7dXe4gs9pnzhWbaHmSbVDWDoCdgjPXWB+VM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777503903; c=relaxed/simple; bh=JPkZZxQJtAFmxo1BKQHEyHgLG+OF4w7fIj5cVmxahEc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vWBEUAnVEhs6Z3O5ZDV8OPDjOYdLzQeWxdIgQSc+AGeSPhLJsT77xv7szt0EAwDTHDLaAyzEx9HkBcQkPn6jOrddrDTDuLTJSwh8Cs8lIw6AKg00/iZpWJTXgzZsZwrQRWiC/cUumwfe5pIlWnxObFQT59dXgvE2TLsw8m6vjAU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10A6A4358A4F Received: by mail-vk1-xa35.google.com with SMTP id 71dfb90a1353d-5637886c92aso155086e0c.0 for ; Wed, 29 Apr 2026 16:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777503902; x=1778108702; 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=LGhNrhgRvJkNkhEJA8oI5uxys7ccpjK/9JsNepdEaAo=; b=g77V9xZPYXNmlD4GD9yH9vAEWUFfzMHDVxvtqKJTmv2l9rx0m+I7xqu/Qk5bHG+06P sMW6F2mxgvO5lA+VqpkZUkdovmb9K6ogOv42aEDmD/TL22StOmyNBZGM/zswwlkSMBTS DqDBLhGJAEEUob/jLDlNNlgauo3glD+MTlfMvoRp4Chi4nePQ9462LfyQVmZ9A1cvsac aqGazCOEWXeEpNvgwAZB3RHOUgfY/lBTC4emGNi5e+YVFo84EKmspUv9OmP41qxUQc/s dDXFJTV3Wnpco+A5jvznzahL9+VLiDdtvlPnwDtGK+yUAAc1/DlIlxO5aUMmMcLpYWbR 5OVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777503902; x=1778108702; 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=LGhNrhgRvJkNkhEJA8oI5uxys7ccpjK/9JsNepdEaAo=; b=V0IhwgYHH77S+1X1B9R3RlbOSlC9vNNN73/qYUNtdQRuap1f4tmuYrYpZO/APjTVje rSm+vNoNvRRoOThK9e6qCdf69PdHIp824vWutgohFQZvvLQPQ7l7vCzZUaPJzWASjqj6 NqKWjDDiDiidApHnAumpSBwVIyA1Rz4T/ZCZ8cVFU+KkT7LDxDkV/JAhey5enjad0vq9 +rK9xTsMXgbtNpjTgL0EuIC71zFxkIU7/VxVSs2i1rPZ7swIiMDkJ1p7Bg8J3hP8N+ii L5mGazhoyo1T4AlJ7IN2Ueqm20W1AzCdJUOinM3twbCdH6qVOwzSFggww4GraDCz+4WZ 5lUg== X-Gm-Message-State: AOJu0Yy4ZfElL8qkTDBeAP3wYgvfaUMPPZa7Drukoqq4wBC6g41PLpPc NNxmbQOe+14IU6fxWPUCKmzyXxhn6A4He6Vbs6TQ46fYMRXUwwKIuGJ63y4o7FKLdZd5TS5eD5N tMy0O X-Gm-Gg: AeBDievpnbMYUNLBah6zkSiVaTHZ/7skso7CtoKUmo5el6aWZdOTQL9UhAeGpzNx76O kv89V5hmAYDxzWEAYawmqX7pgcj7+CxmhMVkCaMWncblDSKcRiyzC+Qd67TBMWgbPmi8gwsavHW JqkoN2UMYnKDQcB5+VjvJvvNlAZeuPa/8/P7QUi+7yK9ci3qtHh7xccpoNhRKpIr1OQ0IPX0YMj gb1dk3eh+RyDWttdpyA4bP0CeCeDk6RMJtVb2k50gKB1chiWCqVvG7EKI+lTdSHSkKVM0SAVN4m 0LGIKyvKCZK+a0eARhzh177JZ58h4xgyGMyCuT7hD8U0XRYqOwhEnfh/ZPwy3y1qobDk2Y59FCS JPvzwa5pb6UhLiy3bxolPMZzyZnMIn+zba0WakOxcWFOv//td/hDRAKqaAeGjTKtmTYzCKnE4r1 aU6buK6vv07vrmUqfC09O/FZU9mnNGy466IxoRzW17rYZc X-Received: by 2002:a05:6102:3a06:b0:609:26c7:e4cc with SMTP id ada2fe7eead31-62ad2342254mr278801137.12.1777503902382; Wed, 29 Apr 2026 16:05:02 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-95cb77bfca0sm1766593241.11.2026.04.29.16.05.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 16:05:02 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH v2 08/37] GDB: testsuite: riscv: Don't return value from top-level (manual) Date: Wed, 29 Apr 2026 20:03:59 -0300 Message-ID: <20260429230432.60487-9-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 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. --- 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 7d5e27debda6..9e67e303dacb 100644 --- a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp +++ b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp @@ -23,11 +23,11 @@ standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { return } if {![runto_main]} { - return 0 + return } # Figure out where the breakpoint will be placed taking account for # stack alignment, and allocation of the dummy code area. set bp_addr [get_valueof "/x" "\$sp" 0] diff --git a/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp b/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp index 930f1b24c4e7..df9aa97025b7 100644 --- a/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp +++ b/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp @@ -23,11 +23,11 @@ standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { return } if {![runto_main]} { - return 0 + return } # Merge FFLAGS_VALUE and FRM_VALUE into a single hexadecimal value # that can be written to the fcsr register. The two arguments should # be the value of each of the two fields within the fcsr register. diff --git a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp index 998f4f485d37..d1d98327403a 100644 --- a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp +++ b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp @@ -20,11 +20,11 @@ standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { return } if {![runto_main]} { - return 0 + return } # A list for all the integer register names and their aliases. The format is # a list with each entry being itself a list, the first item being the primary diff --git a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp index 7be5316bcfb0..b49d466b15f2 100644 --- a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp +++ b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp @@ -31,15 +31,15 @@ foreach_with_prefix {insn_size} {6 8} { set flags [list debug additional_flags=-DBAD_INSN_LEN=${insn_size}] 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" gdb_continue_to_breakpoint "bar"