From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mEPVOltf4GdhmRgAWB0awg (envelope-from ) for ; Sun, 23 Mar 2025 15:22:03 -0400 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=XQV6kgch; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id ECCA21E100; Sun, 23 Mar 2025 15:22:03 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 8F1671E0C0 for ; Sun, 23 Mar 2025 15:22:03 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3CA96385771D for ; Sun, 23 Mar 2025 19:22:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3CA96385771D 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=XQV6kgch Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id B42F4385770B for ; Sun, 23 Mar 2025 19:20:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B42F4385770B 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 B42F4385770B 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=1742757606; cv=none; b=f8RD71lMznG0L1UQEwEsenRFsQY6gdg8+hzxmZBWCGeuQdeKWNgMYCZ6p0aaBntrZl/IUjFAoOnKYFNWma1FWX9KstWqwyDS2Ybi00DdCMmazMUvrrH8dlh/Yj4PpTEZC/NKQJ7HpTH2Rs8edOAzsmanr1S7dX+AWnCJ5hVEW2A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742757606; c=relaxed/simple; bh=ltA7qMDquqyxSlUzF7s6RB1CLLdmivm83VtKZUbVvSE=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=E32NDG1+DAz/qwP4AOrPEgg/s1L95YkquDc8oYINTsIPjKaYYdNHWjXf/+9PL/gySSHVXqJfIgBNTkPQiE7wsNXXF8O6NRSWT0eIAixjmPeNVGBbN7R7UUuAfQkcGRhuvBI1DCHUeRNKKhbmpIvVmdl345ez9LAt2EqPyidpZ5k= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B42F4385770B Received: from eig-obgw-5006a.ext.cloudfilter.net ([10.0.29.179]) by cmsmtp with ESMTPS id wHBbtxp3hMETlwQrctR6cJ; Sun, 23 Mar 2025 19:20:04 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id wQrbtdXw2GFuBwQrct5yyC; Sun, 23 Mar 2025 19:20:04 +0000 X-Authority-Analysis: v=2.4 cv=I69jRsgg c=1 sm=1 tr=0 ts=67e05ee4 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=zstS-IiYAAAA:8 a=xKZ9hcN-wFhFkZNe_aEA:9 a=QEXdDO2ut3YA:10 a=Epz8a4j7_88A:10 a=ul9cdbp4aOFLsgKbc677:22 a=4G6NA9xxw8l3yy4pmD5M:22 a=6Ogn3jAGHLSNbaov7Orx: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=jZ/wupZUrWKbAGf/OZsXMcjoAMK1uJJ99ocafo1omhM=; b=XQV6kgchAXAxOQH4pQDjeWiV7s WEHGiDsZ9WZFi5mj4QLwcv8PVrhMsg+p2q/KRE8lQKxHYMx28a9bWjj2UAhXZIRlY2+DLTeTG+ESV zdSwTMFr0SDiYyD3oTR1c3wPV; Received: from [50.214.9.178] (port=51028 helo=prentzel.rce.guest) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1twQrb-00000004G7J-1W54; Sun, 23 Mar 2025 13:20:03 -0600 From: Tom Tromey Subject: [PATCH 0/3] Support DWARF 5 .debug_sup section Date: Sun, 23 Mar 2025 13:19:59 -0600 Message-Id: <20250323-dwz-dwarf-5-v2-v1-0-3c0775ca5514@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAN9e4GcC/x3MMQ7CMAyF4atUnrFI00YgroIYnMZtPZAiGxVE1 btjGN7wDe/fwFiFDS7NBsqrmCzV0R4aGGaqE6MUN8QQU+hih+X18ZGOmHCNeCrnnkpsc+gT+Om hPMr7H7ze3JmMMSvVYf5lFpVJ6vFO9mSFff8CVtUwSIAAAAA= X-Change-ID: 20250323-dwz-dwarf-5-v2-7d84ad21b045 To: gdb-patches@sourceware.org Cc: Tom Tromey X-Mailer: b4 0.14.2 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: 50.214.9.178 X-Source-L: No X-Exim-ID: 1twQrb-00000004G7J-1W54 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (prentzel.rce.guest) [50.214.9.178]:51028 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: MS4xfCj2YzmQeFa3qKLGq9sV1kEjHdTMBTAG1rtxI2Wh/lScgKynpnrCCNcIfoj9uVXgrcExytrTgl3j02Lr/X1ZnRp43EzYM41Q0JJiGgfRVCf8UKruOoRw DwKjruz91wkpPVQ4fXyDzknz8wdjvBZKTvSerwMEgs8LvnYT6Bot5QdwjvDgnqYo1UzSpiVcEqINcXHZ5mepr+REWKHYSHTc9qc= 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 This is a refresh of a patch I sent a long time ago and then forgot about: https://sourceware.org/pipermail/gdb-patches/2021-February/176508.html It adds support for the DWARF 5 .debug_sup section and related forms. See patch #3 for testing. I regression tested this on x86-64 Fedora 40, comparing the new "dwz -5" results against a "dwz -m" baseline. There are a handful of regressions, due to the decision about build-id that's noted in patch #2. Signed-off-by: Tom Tromey --- Tom Tromey (3): Remove 'read' call from dwz_file::read_string Handle DWARF 5 separate debug sections Add "-5" flag to cc-with-tweaks gdb/contrib/cc-with-tweaks.sh | 5 +- gdb/dwarf2/attribute.c | 5 +- gdb/dwarf2/attribute.h | 14 +- gdb/dwarf2/cooked-indexer.c | 4 +- gdb/dwarf2/die.c | 3 + gdb/dwarf2/dwz.c | 193 +++++++++++++++++++++----- gdb/dwarf2/dwz.h | 25 ++-- gdb/dwarf2/macro.c | 1 + gdb/dwarf2/read.c | 19 ++- gdb/dwarf2/read.h | 8 +- gdb/testsuite/boards/cc-with-dwz-5.exp | 28 ++++ gdb/testsuite/gdb.dwarf2/dwzbuildid.exp | 159 +-------------------- gdb/testsuite/gdb.dwarf2/dwzbuildid.tcl | 184 ++++++++++++++++++++++++ gdb/testsuite/gdb.dwarf2/dwzbuildid5.exp | 17 +++ gdb/testsuite/gdb.dwarf2/dwznolink.exp | 2 +- gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp | 2 +- gdb/testsuite/lib/dwarf.exp | 18 +++ 17 files changed, 469 insertions(+), 218 deletions(-) --- base-commit: df1ed5c0d4935c62b8951fd83a1e37e775ba90a5 change-id: 20250323-dwz-dwarf-5-v2-7d84ad21b045 Best regards, -- Tom Tromey