| Message ID | 20250407175247.3312551-1-simon.marchi@polymtl.ca |
|---|---|
| Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1548B385AC1B for <patchwork@sourceware.org>; Mon, 7 Apr 2025 17:53:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1548B385AC1B Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=default header.b=AvzgjIjf X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 2341C3858C60 for <gdb-patches@sourceware.org>; Mon, 7 Apr 2025 17:52:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2341C3858C60 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2341C3858C60 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744048375; cv=none; b=A/1wiZfn8VuGsYvwqnbnNUkGfZSQXmu6EVh6BFRy67zuRdMIsXO5veX8P07uAoMsC46TG0nAtAiWXHeg7vagq7M9XbmG7kAn5hahL5LbEyVSw4QP9Gi0zmtwTzpqq5SuqA+zgDBcADoF3fxqsLxM4/b+y0c1AotMr1IAXVWIvfI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744048375; c=relaxed/simple; bh=IsEQZt4xubreshgguFhXLbeb2qXX60T625yyCMmVGBo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eTdr2k4rI2tSmPXe+DGhw9qeAh9oFxcbzahFjEX6mnNoJpLusKrZ0MlxBgYT+YJw7jvpCilhss1k7l+oDIG3NZuzHxHlH1VyaS6KSDvzTbOYxKEH1iy3jfI8FZwEV3tlweEPsCA6MujS7EINTNhZTnw6fBwUId6I1ofVldAQpDQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2341C3858C60 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 537Hqnjx218478 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gdb-patches@sourceware.org>; Mon, 7 Apr 2025 13:52:54 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 537Hqnjx218478 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1744048374; bh=wV8PrZSoaOFXuoRXw16xIujb5gqToMn/rMs52DTc5Es=; h=From:To:Cc:Subject:Date:From; b=AvzgjIjfpp7+7gpJys6ghG/Wqc+AcPFWzIGG9ac9JvUD2L1OzrVLR+YOaP1lylY+l 5eTUsUwX+RFczNsgKqCzCo2YhItGnMTK+iPyQOcQ+OOo60fRtobhALMMz2GoaOqtfp nX3PfqC4IiQCRTdcUOEWQH2IMotbhzJJDvbfIhiU= Received: by simark.ca (Postfix, from userid 112) id C15571E11C; Mon, 7 Apr 2025 13:52:49 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Spam-Level: X-Spam-Status: No, score=-3181.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 Received: from simark.localdomain (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (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 ESMTPSA id 8ED271E05C; Mon, 7 Apr 2025 13:52:48 -0400 (EDT) From: simon.marchi@polymtl.ca To: gdb-patches@sourceware.org Cc: Simon Marchi <simon.marchi@polymtl.ca> Subject: [PATCH 0/4] Fix split DWARF + type unit regression Date: Mon, 7 Apr 2025 13:51:57 -0400 Message-ID: <20250407175247.3312551-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 7 Apr 2025 17:52:49 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Fix split DWARF + type unit regression
|
|
Message
Simon Marchi
April 7, 2025, 5:51 p.m. UTC
From: Simon Marchi <simon.marchi@polymtl.ca>
This fixes a regression introduced by 71a48752660b ("gdb/dwarf: remove
create_dwo_cu_reader"). See the last patch for more details.
Simon Marchi (4):
gdb/testsuite: add DWARF 5 + split DWARF + type units board
gdb/testsuite/dwarf: add support to generate DWARF 5 split compile
units
gdb/testsuite/dwarf: fix abbrev section name when putting type unit in
DWO file
gdb/dwarf2: pass correct dwarf2_cu to lookup_dwo_id in
create_cus_hash_table
gdb/dwarf2/read.c | 2 +-
.../boards/dwarf5-fission-debug-types.exp | 33 ++++++
.../gdb.dwarf2/fission-with-type-unit.c | 23 ++++
.../gdb.dwarf2/fission-with-type-unit.exp | 105 ++++++++++++++++++
gdb/testsuite/lib/dwarf.exp | 50 ++++++++-
gdb/testsuite/make-check-all.sh | 1 +
6 files changed, 211 insertions(+), 3 deletions(-)
create mode 100644 gdb/testsuite/boards/dwarf5-fission-debug-types.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/fission-with-type-unit.c
create mode 100644 gdb/testsuite/gdb.dwarf2/fission-with-type-unit.exp
base-commit: 2707d55e539ef323dd14a1293e762bf3d9739ee7
Comments
>>>>> "Simon" == simon marchi <simon.marchi@polymtl.ca> writes:
Simon> From: Simon Marchi <simon.marchi@polymtl.ca>
Simon> This fixes a regression introduced by 71a48752660b ("gdb/dwarf: remove
Simon> create_dwo_cu_reader"). See the last patch for more details.
Thanks. I had one minor note but the rest looks good to me.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
On 4/8/25 11:49 AM, Tom Tromey wrote: >>>>>> "Simon" == simon marchi <simon.marchi@polymtl.ca> writes: > > Simon> From: Simon Marchi <simon.marchi@polymtl.ca> > Simon> This fixes a regression introduced by 71a48752660b ("gdb/dwarf: remove > Simon> create_dwo_cu_reader"). See the last patch for more details. > > Thanks. I had one minor note but the rest looks good to me. > Approved-By: Tom Tromey <tom@tromey.com> > > Tom Thanks, will push with that fixed. Simon