From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ad9kJoHHmGmCLwMAWB0awg (envelope-from ) for ; Fri, 20 Feb 2026 15:43:45 -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=LZiPuWah; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 984A71E0BA; Fri, 20 Feb 2026 15:43:45 -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 CDD831E08D for ; Fri, 20 Feb 2026 15:43:44 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 511674B9DB75 for ; Fri, 20 Feb 2026 20:43:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 511674B9DB75 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=LZiPuWah Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id E623E4BA2E1C for ; Fri, 20 Feb 2026 20:42:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E623E4BA2E1C 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 E623E4BA2E1C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771620145; cv=none; b=dFF3NwuUa4KfEHqmO5ozt0/7tjiLr0FSTK3LUIS7HPb3178tAsV2yo3bFie+Laxqvh78xIJsEauNUx156gMrCHbUIz7CkGTPud6MmBW0DyFPo4mTnafEi6/TIhoO1nGJGuoVR51OKTXGOEPHQ9a72+7e7+gz2mQtaGoJFF1fuQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771620145; c=relaxed/simple; bh=AdPPj7nz/ZVw4t9gXRcmHh4h1o4sFDJwXZ679eXPAo4=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=Ou2xlTkwxN+nHau0ddeH2Vazc4lMb1r7fTTKTYXGriAGYhv7ItsFyAojU408NXtk0BivD+yJgSq9TnOSWcDvM26ACazLZM9btfDDWnewSapzvOLnCmrIGhVrZq0+6HNBCTc5kfxWnrZd+73Pbnn2/WuJqGoTeQk0pgNKn+rCD8E= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E623E4BA2E1C Received: from eig-obgw-6001b.ext.cloudfilter.net ([10.0.30.143]) by cmsmtp with ESMTPS id tMMnvqpdkCxrGtXKSv5F0r; Fri, 20 Feb 2026 20:42:24 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id tXKRv4Xqvcu11tXKSvXtP2; Fri, 20 Feb 2026 20:42:24 +0000 X-Authority-Analysis: v=2.4 cv=bKYWIO+Z c=1 sm=1 tr=0 ts=6998c730 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=zstS-IiYAAAA:8 a=3Fx7I0CSB0swmR94fG8A:9 a=QEXdDO2ut3YA:10 a=ul9cdbp4aOFLsgKbc677:22 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC: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=kE8hMlSGWOSsrQgzdNBepjkRTZ7cf4LNSp2cMhQA6uM=; b=LZiPuWah/RlHq55GRPtPumlGpd F8WEaOihaYQUzh4PjCN0KRsYTFnqetbb8VhHmEJOTT5z8WPUlFXzhSpbEX682LLXkF1TS7mzhDG6y t2KZmuwuSzURCnxOvBaeiZFY2; 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 1vtXKR-00000000Jtq-2Pjq; Fri, 20 Feb 2026 13:42:23 -0700 From: Tom Tromey Subject: [PATCH v3 0/8] Correctly handle inline functions with dwz Date: Fri, 20 Feb 2026 13:42:20 -0700 Message-Id: <20260220-dw-inline-fixup-pr-symtab-30728-2-v3-0-98ae8ab28fab@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIACzHmGkC/5WOMW7DMAxFrxJoLlNRSmM7U+4RdJBkOiZQSwblO DUC3z1ypnZrxwd8vseHyiRMWZ12DyU0c+YUC9i3nQq9i1cCbgsro81Ro/mA9g4cvzgSdPx9G2E UyMswOQ9WV6YGA1Ww6Dtbd56sKp5RqExfjctnYe8ygRcXQ7+Zk/CV4/vg8kSy7XvOU5Ll9dKM2 9V/6jOCBmqayrqDO2h050nSQMs+pEFt+dn8VB7/ojRFWTuPtW2xQQy/lOu6PgFlFnCpRgEAAA= = X-Change-ID: 20260125-dw-inline-fixup-pr-symtab-30728-2-7c31bf38fbe3 To: gdb-patches@sourceware.org Cc: Tom Tromey , Eli Zaretskii 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: 1vtXKR-00000000Jtq-2Pjq 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: 4 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfPwrh/3BzWD6KPUjybPvzsrmtig5W5vRdhbRC8y+KjMvU0nCC84CtjHirl8QnQeLt+BYc5Q9JKRHAI57q5a189x+r43K17fmY3+mnLeZaJdiX3cJYhxK ZcPCPbtvR0tAZwdrca/JdT6N36EXqwRQ4HwcUwZl1DItY+OXoZynK9Q1d83yyn/B0GdjmUo34sCn3s4DhxYLO0NdewNYIXkWYyI= 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 The new indexer does not correctly handle inline functions when 'dwz' is used to compress the DWARF. This series fixes the bug, cleaning up a number of other things on the way. I've separately regression tested each patch in this series on x86-64 Fedora 41. I've also regression tested the series as a whole with the dwz, gdb-index, and debug-names boards. Even with that I messed up somehow, so v1 didn't actually fix the bug in question. I must have modified the patches after testing..? Anyway in v2 I've moved the line recording the CU inclusion and added a comment explaining the placement. I re-ran the aformentioned tests and didn't touch anything. Signed-off-by: Tom Tromey --- Changes in v3: - Minor updates per review - Rebased; which required some changes to the iterate_over_one_compunit_symtab patch - Link to v2: https://inbox.sourceware.org/gdb-patches/20260126-dw-inline-fixup-pr-symtab-30728-2-v2-0-8ab183d1911c@tromey.com Changes in v2: - Fixed fix from Tom de Vries for IS_INLINED debug display - Moved line to record inclusion - Link to v1: https://inbox.sourceware.org/gdb-patches/20260125-dw-inline-fixup-pr-symtab-30728-2-v1-0-e9973a4a401a@tromey.com --- Tom Tromey (8): Don't call add_dependence from index_imported_unit Skip partial units in process_psymtab_comp_unit Don't consider DW_TAG_inlined_subroutine as interesting Combine two cases in cooked_index_functions::search Remove C++ special case from process_imported_unit_die Have iterate_over_one_compunit_symtab search included symtabs Handle inline functions with dwz Update .debug_names documentation gdb/doc/gdb.texinfo | 37 +++++++ gdb/dwarf2/abbrev.c | 1 - gdb/dwarf2/cooked-index-entry.c | 24 +++++ gdb/dwarf2/cooked-index-entry.h | 39 ++++++- gdb/dwarf2/cooked-index-worker.c | 14 +++ gdb/dwarf2/cooked-index-worker.h | 26 +++-- gdb/dwarf2/cooked-indexer.c | 60 +++++++---- gdb/dwarf2/cooked-indexer.h | 8 +- gdb/dwarf2/cu.h | 6 +- gdb/dwarf2/index-write.c | 223 ++++++++++++++++++++++----------------- gdb/dwarf2/read.c | 85 +++++++++------ gdb/dwarf2/read.h | 37 +++++++ gdb/symfile-debug.c | 23 ++-- 13 files changed, 406 insertions(+), 177 deletions(-) --- base-commit: e16c7848007e4faa071a6483556e69f365e9eb69 change-id: 20260125-dw-inline-fixup-pr-symtab-30728-2-7c31bf38fbe3 Best regards, -- Tom Tromey