From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id IYXdEJDeeGmALBgAWB0awg (envelope-from ) for ; Tue, 27 Jan 2026 10:49:36 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=mPmtrc+/; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2C7601E08D; Tue, 27 Jan 2026 10:49:36 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,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 735DE1E08D for ; Tue, 27 Jan 2026 10:49:35 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id E78B44BAD15C for ; Tue, 27 Jan 2026 15:49:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E78B44BAD15C Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=mPmtrc+/ Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id CAC0A4BAD151 for ; Tue, 27 Jan 2026 15:48:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAC0A4BAD151 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CAC0A4BAD151 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769528938; cv=none; b=Gw+6/9JFQyepm9U8O4aBXyXyk3HbAYSYiVMiikd57PqdY/nFD7eicwSNp7foqHXQxPY66VxznAgQ/LkQIsy+gZYsCRg2PfTOtVCrVYnJWe6DdMT08iJwcPH9piU8nCqFizJb4mH2mh7WaXfOF/jsE8l2FbFAvghMDN3++/CtpMA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769528938; c=relaxed/simple; bh=05P2dLwOEAJ5cYLC2E2ZJkbqr28cgnwkD/cB0Ng+TF0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FaWj5i7+mINar0p0PNs5YKe1Bg2i8iFAirli0O0lTuM312m8YLprVfLUCwJeqsIEB4YYrLZbH38UV3pGNeI4AVK5qabIEGGr03fnS4hJNiraCBhWAXNoX8NiED7srjj+0zP+mqsdB+aKmT7VUFATUgGZOzsY4Y4l47eaA7at7DY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAC0A4BAD151 Received: from eig-obgw-6004b.ext.cloudfilter.net ([10.0.30.210]) by cmsmtp with ESMTPS id kWV3vqcpaSkcfklJKvJv7J; Tue, 27 Jan 2026 15:48:58 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id klJJv73tPK8vzklJJvho5r; Tue, 27 Jan 2026 15:48:58 +0000 X-Authority-Analysis: v=2.4 cv=cJDgskeN c=1 sm=1 tr=0 ts=6978de6a a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=vUbySO9Y5rIA:10 a=ItBw4LHWJt0A:10 a=Bk-YJziDDzxJ5EKwpRkA:9 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=T4U3HSKMxYXS4gnr4+3IMuAqnXpXwTI9umdbmsV5hqc=; b=mPmtrc+/M9WzzaHC38Aiu5Xoi4 Nnn6zS6W1iPdxCS5dwCyuVzzEYQAEJ+FDeCh2DoUkaQjc1VY9ZRv+88AfdN70MkVuTVrNeZMnzTGt jjLkn1M+f4yE9o2aQWXREKJjI; Received: from 97-122-114-32.hlrn.qwest.net ([97.122.114.32]:40390 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vklJJ-00000002YHM-2J2B; Tue, 27 Jan 2026 08:48:57 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Remove "readnow" from two tests Date: Tue, 27 Jan 2026 08:48:45 -0700 Message-ID: <20260127154845.2163457-1-tom@tromey.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.114.32 X-Source-L: No X-Exim-ID: 1vklJJ-00000002YHM-2J2B X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-114-32.hlrn.qwest.net (localhost.localdomain) [97.122.114.32]:40390 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfP9bcXLhrCDC7XsWy0vX7luwikTtb3lZmnkZTdFH4gxj9G6a8AjilMuE4soC+Qhf5UKql6H95WFmRMgAV8SUmh9hoqRKkZDaRJrQQt3cZqj+Z7cNoQZW QYuCU0JdNJ6JCskeJiAGZX4Cg0qlq4Gaey54PGIbs91NS50kyELosyI1b+yqYasnOYUqlBnUHfrKVNWsU2mU7tPuFDN3/rts3qQ= 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 These tests both claim that -readnow is needed for proper operation, but (1) this isn't true, and (2) if it were true it would be a bug in gdb. So, remove the use of readnow. --- gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp | 7 +------ gdb/testsuite/gdb.dwarf2/symtab-producer.exp | 12 +++--------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp b/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp index 5057ff2c2d8..5bfd0099b11 100644 --- a/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp +++ b/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp @@ -91,12 +91,7 @@ if {[build_executable ${testfile}.exp ${testfile} \ return -1 } -# We need --readnow because otherwise we never read in the CU we -# created above. -save_vars { GDBFLAGS } { - append set GDBFLAGS " -readnow" - clean_restart ${testfile} -} +clean_restart ${testfile} if {![runto_main]} { return -1 diff --git a/gdb/testsuite/gdb.dwarf2/symtab-producer.exp b/gdb/testsuite/gdb.dwarf2/symtab-producer.exp index 49bc2c25635..c90bf77518c 100644 --- a/gdb/testsuite/gdb.dwarf2/symtab-producer.exp +++ b/gdb/testsuite/gdb.dwarf2/symtab-producer.exp @@ -71,15 +71,9 @@ Dwarf::assemble $asm_file { } } -# We need --readnow because otherwise we never read in the CUs we -# created above. -save_vars { GDBFLAGS } { - set GDBFLAGS "$GDBFLAGS -readnow" - - if { [prepare_for_testing "failed to prepare" ${testfile} \ - [list $srcfile $asm_file] {nodebug}] } { - return -1 - } +if { [prepare_for_testing "failed to prepare" ${testfile} \ + [list $srcfile $asm_file] {nodebug}] } { + return } gdb_py_test_silent_cmd "python with_producer = gdb.lookup_global_symbol(\"with_producer\")" \ -- 2.49.0