From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id aY3qC4DHmGloLwMAWB0awg (envelope-from ) for ; Fri, 20 Feb 2026 15:43:44 -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=fDuYtl1M; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2B4271E0BA; Fri, 20 Feb 2026 15:43:44 -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 A70E51E08D for ; Fri, 20 Feb 2026 15:43:43 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 29EB44B9DB66 for ; Fri, 20 Feb 2026 20:43:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29EB44B9DB66 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=fDuYtl1M Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 99D5A4BA23E0 for ; Fri, 20 Feb 2026 20:42:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 99D5A4BA23E0 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 99D5A4BA23E0 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=1771620145; cv=none; b=EpVs9rCkKF1baaGDSh/xMdZQrIirRoiStWkK4axnh0DieacWC3mOaLHHR17mfqi7C4o6IEh0rd610iVoH4mBBBB4z6xbnRU8hatb4rai+1ka/02J3r6pmO+ZMn6Ce9OwbWShAhLl0+f/vFykll52lbLbZnWQ72U35Y21ahWmO2I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771620145; c=relaxed/simple; bh=HURPNN6Vfxv9JM3jtUKKUUJDoKrNE5mQ/ib9EuGj9wM=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=d37ai3BJGRHGJ1zjIZyw+9BAG8o5JhP0cDgvBlZ1XFx5CxiEpcXPOiooUA7Z1stYzXWbQUyGShKk/+DpXzBpbDSH/cpMCt8YGJgGAvjl/EmcgM9vPOPyJkIf5Ap8fJuAZfvFnwdoA5n3q0Hm8rO54XKWIdfvy0ar7J4GjIbEUE4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99D5A4BA23E0 Received: from eig-obgw-5001b.ext.cloudfilter.net ([10.0.29.181]) by cmsmtp with ESMTPS id tUnQvIiBRSkcftXKTvZGiF; Fri, 20 Feb 2026 20:42:25 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id tXKSvC4s0SqlVtXKSvZiq7; Fri, 20 Feb 2026 20:42:24 +0000 X-Authority-Analysis: v=2.4 cv=I7FlRMgg c=1 sm=1 tr=0 ts=6998c731 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=ItBw4LHWJt0A:10 a=B_Tv2JfvxkIVyvo0GuEA: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=GJ4dAPpqzW0gDXJsf2tUgBYXUnhUggTzOcAiDprQ9DQ=; b=fDuYtl1MvNcMEDJXhGOmrZ9oE8 7Q3qtlsdP/7KKpKsPjwxQf8Zyb3kwa+hYtwRsH0g+jovJ4hOcyDYKkuGjf49NT/+p//f7PsK0PsoB I01XwhIGTVNUSE22rqy1wPvuS; Received: from 97-122-122-234.hlrn.qwest.net ([97.122.122.234]:49908 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 1vtXKS-00000000Jtq-0TP8; Fri, 20 Feb 2026 13:42:24 -0700 From: Tom Tromey Date: Fri, 20 Feb 2026 13:42:22 -0700 Subject: [PATCH v3 2/8] Skip partial units in process_psymtab_comp_unit MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260220-dw-inline-fixup-pr-symtab-30728-2-v3-2-98ae8ab28fab@tromey.com> References: <20260220-dw-inline-fixup-pr-symtab-30728-2-v3-0-98ae8ab28fab@tromey.com> In-Reply-To: <20260220-dw-inline-fixup-pr-symtab-30728-2-v3-0-98ae8ab28fab@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: 1vtXKS-00000000Jtq-0TP8 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]:49908 X-Source-Auth: tom+tromey.com X-Email-Count: 6 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfD7WJaveVo70kD48IGfxhgkFCpRH9lyxotb1gvtyZ+p0KHcDooJDAz4kfMGQoRGD36rQClar07wqSWRayMyUBBbdq+oL/7vaHRFKNqpuzHNfUOFmsQWO k+V0K8quSi7/xfBIqPPVPaf2mjoa0u1kBuVszoNGOweVVRCqYAH8HllFiCKWwwHepSLKRuvXtCvFXJGXn926KGqS2AA7NAQvwtI= 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 process_psymtab_comp_unit passes 'false' for the 'skip_partial' argument to the cutu_reader constructor, but then proceeds to skip partial units. This patch simplifies the code by passing 'true' instead. --- gdb/dwarf2/read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 5f18d5f2e9a..f545a3158e9 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -3369,7 +3369,7 @@ cooked_index_worker_debug_info::process_unit { auto new_reader = std::make_unique (*this_cu, *per_objfile, nullptr, - false, std::nullopt, + true, std::nullopt, storage->get_abbrev_table_cache ()); if (new_reader->is_dummy ()) @@ -3383,7 +3383,7 @@ cooked_index_worker_debug_info::process_unit if (this_cu->is_debug_types ()) process_type_unit (reader, storage); - else if (reader->top_level_die ()->tag != DW_TAG_partial_unit) + else { bool nope = false; if (this_cu->scanned.compare_exchange_strong (nope, true)) -- 2.49.0