From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8SezG+b4AWraIDAAWB0awg (envelope-from ) for ; Mon, 11 May 2026 11:42:30 -0400 Received: by simark.ca (Postfix, from userid 112) id 6E0461E0C3; Mon, 11 May 2026 11:42:30 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2, 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 CE6051E067 for ; Mon, 11 May 2026 11:42:29 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 785974BAE7F9 for ; Mon, 11 May 2026 15:42:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 785974BAE7F9 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 52D524BAE7D8 for ; Mon, 11 May 2026 15:40:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 52D524BAE7D8 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 52D524BAE7D8 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778514056; cv=none; b=oeLThMJWgn8KnEJ4j8qY5Y+9w0Wk4pp4+Ofo50chCLWxouI6txvHo1PwqH+vNIp/qVuiT4gRvdhzyWp6+xG0JkDP1nDxO1NYo6awaYx4Vae+c9UN791YMlTh3g32ONEQTZROw1KpWzMCZR8euGGcQYUxGMTxmaVkuh+0qVUhwKA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778514056; c=relaxed/simple; bh=SZxhpGY/UerNyHlQGT9tSqNLzc04St/7eEdnT/OktmA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=XSmILiJxyU8MdUYBWbn2Dwn3o3TgH9NC8UxAnMNpvNVUVDRf/30irHOTlCJclhdjdNhcUnuBncpirTk/g8IMuXbEknDz8IAIg2nzxcuUIXMSqzC5lC2HIVCVZqdXlGUBRQMAoW0lYAr1ajnPJh8dYxvfr1+tEQkjigaRZQhkgHw= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52D524BAE7D8 Received: by simark.ca (Postfix) id 0D55B1E067; Mon, 11 May 2026 11:40:54 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH v3 0/7] Handle foreign type units in .debug_names Date: Mon, 11 May 2026 11:40:26 -0400 Message-ID: <20260511154053.142576-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 v3 of: https://inbox.sourceware.org/gdb-patches/20260416200256.386186-1-simon.marchi@efficios.com/ I merged the first patch of v2 ("gdb: refuse to produce .gdb_index when skeletonless type units are present"), ensuring that GDB does not produce bogus indexes in presence of foreign type units. I addressed the review comments from v2, which were all pretty minor. The first patch of this series moves the dwo data structures to a new dwarf2/dwo.h header file, instead of dwarf2/read.h. That is the only one worth re-reviewing, I think, all the others have the Approved-By tag already. Simon Marchi (7): gdb/dwarf: move dwo_unit and dwo_file to dwo.h gdb/dwarf: move dwarf2_cu::section to cu.c gdb/dwarf: add dwo_file::find_tus gdb/dwarf: generate foreign type units in .debug_names gdb/dwarf: add debug output in read-debug-names.c gdb/dwarf: add more context to complaints in mapped_debug_names_reader::scan_one_entry gdb/dwarf: read foreign type units gdb/dwarf2/cu.c | 11 + gdb/dwarf2/dwo.h | 239 +++++++++++ gdb/dwarf2/index-write.c | 165 ++++++-- gdb/dwarf2/read-debug-names.c | 357 +++++++++++++--- gdb/dwarf2/read.c | 390 ++++++++---------- gdb/dwarf2/read.h | 117 ++++-- gdb/dwarf2/types.h | 2 + ...dwarf5-fission-debug-types-debug-names.exp | 29 ++ 8 files changed, 975 insertions(+), 335 deletions(-) create mode 100644 gdb/dwarf2/dwo.h create mode 100644 gdb/testsuite/boards/dwarf5-fission-debug-types-debug-names.exp base-commit: 62cc7210c87a08a9e10955d9a240cfe0c0b5ee13 -- 2.54.0