From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AYqTN6um+2mdWhsAWB0awg (envelope-from ) for ; Wed, 06 May 2026 16:38:03 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=al3hIVMl; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E017C1E0BA; Wed, 06 May 2026 16:38:03 -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 8C7D71E067 for ; Wed, 06 May 2026 16:38:03 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0315C4BA2E3A for ; Wed, 6 May 2026 20:38:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0315C4BA2E3A Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=al3hIVMl Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id C9E994BA2E30 for ; Wed, 6 May 2026 20:37:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9E994BA2E30 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C9E994BA2E30 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778099823; cv=none; b=d9SQBxGZTjfc3uVzVPQIe+4ELRcsVZAFGFwb+3nSDQ8r4U5aVQJZrQ6wbxVY7FKcdtqcxODcUJXHTXE6/dpjGt4tfBUVm/FlnKlxiAgUmFzfCJviFALMQ7CD4rQ44/NCbilZTRwsd5tuDkc0XOrY4D8+/xS+cbc04f/6pa+cv+0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778099823; c=relaxed/simple; bh=n6H3lA0IzHmtTZo8HryE6PU/F3b6HVGgFvqppcdkibM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ocGRjpYufjs88LctuX6hUzBQJG7oxuSC4hKIVQghPccCAdC0Qu84s6ZJKh5XLtXbvN/qV8o0D5ujz7cJ+0E72myos8MQD9Xdga5Mw3fPVJ0WeFDF5gn7dUC+LetQ7zCeY8jmLVrB+o88rw2F4FzOMgE8NwiVAB4Jxx1k6oDrIY0= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=al3hIVMl DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9E994BA2E30 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 646KauUx157058 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 6 May 2026 16:37:01 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 646KauUx157058 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1778099821; bh=mOQrVQPZIk4vsm1LDf19wBQSV+NE2WBheW9WuZf28FU=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=al3hIVMlDYLFFyZ5XaLcpHho/1M3W5gKkMq245FUkNJl06JauxmE3fclKR3QC+BL6 z6rzP04ItP/Y7X/FtsqpwuDAeV8xV1socLYtL9ifEIPJDq87QMvUOIvJYLwg8icHlz 052F4Or5ZRsdxzxQxvjsMV5NO3Np4NBYd6/kXzKO1yfAEH+KYSDVJnYsjykpMhwGCV Ytj8x6K+hB++8WcBPCMHowwaMNH+OGTYnyOBxgNuue3VxoStW5ms4rAn0ARLA/1FJU Z1dmqCHkLus9gvMiJEPgD0cZ9aIYXpQWDuAbbPEnlU/tAcaC+QZFJtL7/3Uy02rKbn Y5M3U8RcAsDQA== Received: by simark.ca (Postfix) id 56FF61E0E2; Wed, 06 May 2026 16:28:07 -0400 (EDT) From: simon.marchi@polymtl.ca To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 6/7] gdb/testsuite: use -inferior-args in gdb.base/gcore-buffer-overflow.exp Date: Wed, 6 May 2026 16:27:54 -0400 Message-ID: <20260506202804.1681886-7-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260506202804.1681886-1-simon.marchi@polymtl.ca> References: <20260506202804.1681886-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 6 May 2026 20:36:56 +0000 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 From: Simon Marchi This test passes arguments to the inferior using "set args". This doesn't work under the native-gdbserver board. It doesn't appear to cause a failure though, because the test only verifies that a core dump is successfully saved, which happens even if the test fails to pass the argument to the test program. Nevertheless, use the new -inferior-args option, that feels more correct. Change-Id: I8ef5b57d84b1b0c5b35d2636c4331a37bc159661 --- gdb/testsuite/gdb.base/gcore-buffer-overflow.exp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp index 3dcc4f00d0a6..f922cc5a4a61 100644 --- a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp +++ b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp @@ -28,10 +28,7 @@ if { [prepare_for_testing "prepare" $filename $srcfile] != 0 } { return } -gdb_test_no_output "set args ${pattern}" \ - "set buffer exceeding arguments" - -if {![runto_main]} { +if {![runto_main -inferior-args $pattern]} { return -1 } -- 2.54.0