From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 223B23858CDB for ; Wed, 17 Jan 2024 18:59:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 223B23858CDB 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 223B23858CDB 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=1705517945; cv=none; b=U6RtPrK7HKtiAAxePU/+ekVjtcDacEvyitk27MHZmWnfdwB6RCcLjB6XNpiSPdeNBoY5b0DeT2z+3q66SjIh8arZaPmcqeXnswlry9SnkbeWjoDfZPDRy3h8OdldzGwd3L0zOLyqVU2GYE5+dLfgHmzsMd/4FS42yF6IVNGy0yA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705517945; c=relaxed/simple; bh=dlbG9yG6R38kY++aj3flIycnEPKTPzXMRxht/IN3L9o=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=cmIlzQb5UH+rXnC788l2Kpd2npSTyymbMdRIvrAsofNwSHVRddK7DOL32L8olehkAEbs3ruYr/jkEyeclGo4h91wAhoQdzrEGwwFXZMhfGPHyxKFdLtjsU1jxcr7928oVnKUODPVS7UtAK24klJk8ZrNWl7UoCo0vX0L5T3Ycw4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6007a.ext.cloudfilter.net ([10.0.30.247]) by cmsmtp with ESMTPS id Q9UBr67B6CF6GQB7trfYQm; Wed, 17 Jan 2024 18:59:01 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id QB7sr80H7yxR5QB7srp5WL; Wed, 17 Jan 2024 18:59:00 +0000 X-Authority-Analysis: v=2.4 cv=JYOvEGGV c=1 sm=1 tr=0 ts=65a82374 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=dEuoMetlWLkA:10 a=Qbun_eYptAEA:10 a=zstS-IiYAAAA:8 a=9vKwjOOrZxSthdrl1m0A:9 a=QEXdDO2ut3YA:10 a=4G6NA9xxw8l3yy4pmD5M:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To: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=wBNmWEdkrTrO0SK4ndZOCCk8F5U6S+0uqsfiX4c3sHk=; b=mfluTep/yGQHnrGPPNUKoixag5 YvfUfg/jYXGIim3BDWkBoZDvRJCFgtW2KNkDpkg3T8YTRXwpAEzLqXOxbr1chowQenumcWplNgZIt LJbLv9MMoo1y4zeI64tHwH6+S; Received: from 97-122-68-157.hlrn.qwest.net ([97.122.68.157]:45122 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rQB7s-004FFp-0R; Wed, 17 Jan 2024 11:59:00 -0700 From: Tom Tromey Subject: [PATCH gdb/symtab 0/7] Compute DWARF entry parents across CUs Date: Wed, 17 Jan 2024 11:58:47 -0700 Message-Id: <20240117-die-map-madness-v1-0-42fb435ad1ed@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGcjqGUC/x3MMQ7CMAyF4atUnrHUlFSpuApicBJDPTRUNkJIV e+O2+EN3/D+DYxV2ODWbaD8FZN3c4RLB2Wm9mKU6oahH2IfQsIqjAutvtrYDPMUKY0xXcs0gr9 W5af8zuL94c5kjFmplfnoLGQfVtj3P1cFKMJ6AAAA To: gdb-patches@sourceware.org Cc: Tom de Vries X-Mailer: b4 0.12.4 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.68.157 X-Source-L: No X-Exim-ID: 1rQB7s-004FFp-0R X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-68-157.hlrn.qwest.net ([192.168.0.21]) [97.122.68.157]:45122 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKAEJOg9+0xU8qq8K+FCo+LwB8pEBuHWxk5GCbS4nl2u1eck9ZbtW6rPrE2voJhnsY9ur5EUZ8dD6YZzHSxHx2RLlecmiacHmrYJkZZC+TW0/MMCbtP3 ocFK2wTTM1U7RGnkpszZcRBYs4Cr+BVHbttmhOTeUtCdufjzjlw6QMcgEQBsLEUvne3HEf6vkGtuTwFNcMQrFWuXa8wdWoQnRgM= X-Spam-Status: No, score=-3016.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This is a different approach to a patch series that Tom de Vries sent. The bug here is that gdb won't always correctly compute the parent of an entry in some cross-CU reference cases. I've included a few of Tom's patches in this series. The main difference overall is that this one incorporates the parent computation into the finalization loop, so the work is parallelized. Regression tested on x86-64 Fedora 38 with the cc-with-dwz board. There is still one bug (the inlining one), but I believe that one requires a different fix. --- Tom Tromey (4): Change handling of DW_TAG_enumeration_type in DWARF scanner Add move operators for addrmap Introduce class parent_map for DIE range map Correctly handle DIE parent computations Tom de Vries (3): [gdb/symtab] Refactor condition in scan_attributes [gdb/testsuite] Add gdb.dwarf2/forward-spec-inter-cu.exp [gdb/testsuite] Add gdb.dwarf2/backward-spec-inter-cu.exp gdb/addrmap.c | 12 +- gdb/addrmap.h | 19 ++- gdb/dwarf2/cooked-index.c | 13 +- gdb/dwarf2/cooked-index.h | 52 ++++++-- gdb/dwarf2/parent-map.h | 132 +++++++++++++++++++++ gdb/dwarf2/read.c | 113 +++++++----------- .../gdb.dwarf2/backward-spec-inter-cu.exp | 103 ++++++++++++++++ gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp | 103 ++++++++++++++++ 8 files changed, 458 insertions(+), 89 deletions(-) --- base-commit: 2002c0099f9fb4d737930acd66733cfad39f68f1 change-id: 20240117-die-map-madness-b84a75473c85 Best regards, -- Tom Tromey