From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GYnTDf2bgWnBXiUAWB0awg (envelope-from ) for ; Tue, 03 Feb 2026 01:55:57 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=cna655eN; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 313E81E0E1; Tue, 03 Feb 2026 01:55:57 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED,RDNS_NONE autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (unknown [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 DC1551E089 for ; Tue, 03 Feb 2026 01:55:56 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 59D3B4BC7ED4 for ; Tue, 3 Feb 2026 06:55:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 59D3B4BC7ED4 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=cna655eN Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 849564BB58EE for ; Tue, 3 Feb 2026 06:54:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 849564BB58EE 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 849564BB58EE 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=1770101684; cv=none; b=V7HWbSJtMqcNOERJTnwEEo10T3SjhMATei6fM1kBVdqRVhf35YaUfIRj6OzTC4zVxRrNLe4Y4Llry80grc4vBgmQpuAnd184Qw8n2wPwSINkFtwMzZAdaG+ddRSwzGja+r3Gz5bbqdm6cl9lKmvhmffLyz7Qv8sI8VTHNmI/Qy0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770101684; c=relaxed/simple; bh=w7b6skhyL0LwLDama+0koh0IFzO3qWPIMEHtAvqyEfA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=iYjX21NyWxYTe3kWtUweH5D5fQMFjJLXcpKY9NYl9VdQq926fs0uZcOnlhW5IPd12/EmCFzOAiHm6QtOsvMNE70TqDsPC9Y1s9gpiVi/PBa/pKjGJllZjm/OSJturmWQqfROWm+8Zo1SIKNlt6qdDjoSqdNIq6DWh4OsMuCpcEU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 849564BB58EE 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 6136sarX180184 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Feb 2026 01:54:41 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 6136sarX180184 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1770101682; bh=RAEpTT0xbNYj9k03iJcJPomGISJK+2Br98a7iXn/q84=; h=From:To:Cc:Subject:Date:From; b=cna655eN2LR+dFpd/IUSz4gf2clZH4Wn3zMJjuiAANvoWKYOkrYePlGdMqcxeI0G9 /PfouqmCs5tIawOAyZVI+c9Ix6r61QsFMrhXA1vNHKChtt4wQ5/4+KEtPjFDnRjEFf /E6XOXofojkOre6T2fkbWUcmvP8lT257LrZaY03jVHeFDkDsxr4EsjWFPnymfCevlU afn+ve5Ql357yzumt/FQuk0hafsWxu2+aTp/I6o9I8WaN4uowtyQ/jHhk97x8ZeHN9 HIijGgZKhGR7R6XGXYuMR60PcXKkSsE0v7ArmN8BOjEteGP+CetfDA5Eeqy9jlMlHx WJm0q0YPc6ewg== Received: by simark.ca (Postfix) id 2F5D01E089; Tue, 03 Feb 2026 01:54:36 -0500 (EST) From: simon.marchi@polymtl.ca To: gdb-patches@sourceware.org Cc: Nick Alcock , Weimin Pan , Simon Marchi Subject: [RFC PATCH 0/8] Make CTF reader build full symtabs, get rid of psymtab Date: Tue, 3 Feb 2026 01:45:41 -0500 Message-ID: <20260203065435.3092465-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.52.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Tue, 3 Feb 2026 06:54:36 +0000 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 From: Simon Marchi The CTF debug info reader is the last user of psymtabs. This seriies changes the CTF reader to no longer create psymtabs, but instead create full symtabs from the start. My hypothesis is that CTF debug info is typically small enough and quick enough to process that we don't need an intermediate step before the full symtabs. This is an RFC, because I would like to collect comments (especially from the CTF experts) on whether the startup time remains acceptable, even for large programs. I also think that my use of expanded_symbols_functions in the last patch is not quite right, I'll need to look into that further. Simon Marchi (8): gdb/ctf: add debug logging in ctfread.c gdb/ctf: add unique_ptr types gdb/ctf: editorial renames gdb/ctf: use ctf_per_objfile in ctf_archive_iter_psymtab_data and ctf_context gdb/ctf: check return value of ctf_type_align gdb/ctf: add scoped_time_it in elfctf_build_psymtabs gdb/ctf: don't use psymtabs, create symtabs directly gdb: remove psymtab.{c,h} gdb/Makefile.in | 2 - gdb/NEWS | 4 + gdb/ctfread.c | 691 ++++++++----------- gdb/ctfread.h | 2 +- gdb/doc/gdb.texinfo | 7 + gdb/elfread.c | 8 +- gdb/psymtab.c | 1575 ------------------------------------------- gdb/psymtab.h | 691 ------------------- 8 files changed, 284 insertions(+), 2696 deletions(-) delete mode 100644 gdb/psymtab.c delete mode 100644 gdb/psymtab.h base-commit: b11507b3dcc451e22ee29c89f386fab62b4e5b44 -- 2.52.0