From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QdgkIqr8nGlE8gcAWB0awg (envelope-from ) for ; Mon, 23 Feb 2026 20:19:38 -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=jh/n925O; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 84E141E0BA; Mon, 23 Feb 2026 20:19:38 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no 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 EE4D31E08D for ; Mon, 23 Feb 2026 20:19:37 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 81AD04B9DB7B for ; Tue, 24 Feb 2026 01:19:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81AD04B9DB7B 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=jh/n925O Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 0F2A74B9DB64 for ; Tue, 24 Feb 2026 01:17:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0F2A74B9DB64 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 0F2A74B9DB64 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771895822; cv=none; b=nNCG0bXmkx6Sh/QbOAGQ1i4N9cgh7otxL8Yn66pQATehhRd8MzVLNzyLf985a7YynAjt1AO4FDEiOwIc2mMlHEDI81GlQIwlamvu+PWvJzR3WPcaoGU2gcgRhquIkXT7McWvbwHKBsJQPh3Or9J7No3lZvd1Niesml5+IU2xUm0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771895822; c=relaxed/simple; bh=ehKAk7paj7QQwy1Rrq0L3rat9NsU/u8P5KDXvCNK5yY=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=UPHt4hVGycBPXxRPcvNX3HCU4Xi1d1o9YhjaDh/731NnnYhJr5evTEEop6RZUIEC3cOnHl8oZ2KTa7S5sFNrzR0R1A7llvN40LEdDE+CQc7v6YJXg8nXn64DklGz+CLOUnMNgpGESFgbtONxqbVESne0wheaunF/paw9DAnd9go= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F2A74B9DB64 Received: from eig-obgw-5003b.ext.cloudfilter.net ([10.0.29.155]) by cmsmtp with ESMTPS id udxmvxjJmVCBNuh2qvhRrr; Tue, 24 Feb 2026 01:17:01 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id uh2ov4s5b2l0kuh2ovF9xL; Tue, 24 Feb 2026 01:16:58 +0000 X-Authority-Analysis: v=2.4 cv=UfRRSLSN c=1 sm=1 tr=0 ts=699cfc0c a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=ItBw4LHWJt0A:10 a=yJp9Uo0TTDmNn8p_uWgA:9 a=QEXdDO2ut3YA:10 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qWFeCAos7xYxM3UqM/V3oG5eftnluIFHU4X6976KM/Q=; b=jh/n925OHfJI1MQ/piyVxF8K4e gCLOZ8afRJdWSDkeeX9bfJSogJORwHtHhHvx56b3PoewPpf5Jq/X6ckIa5y4f4fIe5lPMGwBPGHa+ sFtYGNKLohQgHPKC56o31+5xB; Received: from 97-122-122-234.hlrn.qwest.net ([97.122.122.234]:51428 helo=[192.168.122.1]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vuh2n-00000000sJg-3XDr; Mon, 23 Feb 2026 18:16:57 -0700 From: Tom Tromey Date: Mon, 23 Feb 2026 18:16:54 -0700 Subject: [PATCH v4 1/8] Don't call add_dependence from index_imported_unit MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260223-dw-inline-fixup-pr-symtab-30728-2-v4-1-bf923dc5fb19@tromey.com> References: <20260223-dw-inline-fixup-pr-symtab-30728-2-v4-0-bf923dc5fb19@tromey.com> In-Reply-To: <20260223-dw-inline-fixup-pr-symtab-30728-2-v4-0-bf923dc5fb19@tromey.com> To: gdb-patches@sourceware.org Cc: Tom Tromey X-Mailer: b4 0.14.3 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.122.234 X-Source-L: No X-Exim-ID: 1vuh2n-00000000sJg-3XDr X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-122-234.hlrn.qwest.net ([192.168.122.1]) [97.122.122.234]:51428 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJB9F6rYYZDOcUcT99CFjYksLFnmvWrXLimUA7jpBM/4y+3MeEAFyjN5SvDpgQ1ZZiGgJz7nADhsEKD8hwsu82LVq+KCD1GaijmGhSVBkgVY7v6vB7NU K9xgSNuPv40XyJdCY4efArArgmOahYH4d+jKjUUT7/StoNsiVHzHASd+kbDPDC/0yNk0uzFe29h+YnC/XbEMUXsF9XRriSb6sqk= 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 cooked_indexer::index_imported_unit calls add_dependence. However, this field is only needed during full symbol reading. Remove this call. --- gdb/dwarf2/cooked-indexer.c | 6 +----- gdb/dwarf2/cu.h | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gdb/dwarf2/cooked-indexer.c b/gdb/dwarf2/cooked-indexer.c index 40f62de80eb..3221ccd34f8 100644 --- a/gdb/dwarf2/cooked-indexer.c +++ b/gdb/dwarf2/cooked-indexer.c @@ -430,11 +430,7 @@ cooked_indexer::index_imported_unit (cutu_reader *reader, cutu_reader *new_reader = ensure_cu_exists (reader, *target, true); if (new_reader != nullptr) - { - index_dies (new_reader, new_reader->info_ptr (), nullptr, false); - - reader->cu ()->add_dependence (new_reader->cu ()->per_cu); - } + index_dies (new_reader, new_reader->info_ptr (), nullptr, false); return info_ptr; } diff --git a/gdb/dwarf2/cu.h b/gdb/dwarf2/cu.h index 1361898accc..8ece6ddc010 100644 --- a/gdb/dwarf2/cu.h +++ b/gdb/dwarf2/cu.h @@ -300,9 +300,9 @@ struct dwarf2_cu symbols are being read. */ buildsym_compunit_up m_builder; - /* A set of pointers to dwarf2_per_cu objects for compilation units referenced - by this one. Only used during full symbol processing; partial symbol - tables do not have dependencies. */ + /* A set of pointers to dwarf2_per_cu objects for compilation units + referenced by this one. Only used during full symbol + processing. */ gdb::unordered_set m_dependencies; public: -- 2.49.0