From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iUTtJ2qIqGkyaxQAWB0awg (envelope-from ) for ; Wed, 04 Mar 2026 14:30:50 -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=uK1Lp+x3; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9B76E1E089; Wed, 04 Mar 2026 14:30:50 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, 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 BE0FC1E089 for ; Wed, 04 Mar 2026 14:30:49 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 035304BA23CE for ; Wed, 4 Mar 2026 19:30:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 035304BA23CE 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=uK1Lp+x3 Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id BCA4D4BA2E0D for ; Wed, 4 Mar 2026 19:29:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BCA4D4BA2E0D 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 BCA4D4BA2E0D 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=1772652590; cv=none; b=k/T1i7s5/TJ/JB9e5wRrfJUcIQ0HD7Ld/U6CvqhcHu+zN2LQDNHmJDaOAqnUTDHoQLYaFOJjj0zKMmLeYtyTVcbbGkD1CC/JrAwnNrMxDIP/egJ9yWzguKm15AW1SLB9yB8qMSGLm74phz05B0LQondLAbw5AvB0sOIMvlOWYA4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772652590; c=relaxed/simple; bh=GMXZ26AHFyUKVDhWHqH/pBKxcjCeYsSY77cWPcuxSbA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=AswhY1YFTgLEtRcv06aVccIXBEryqajS4RlvW7Njm9Hlley/vbfcpw+nJFbdLZjfl1Nf3KPCNJFKFsPKM1DVOt5Y6G5m4iUGRkfq0j3MTuWBdDWPb8cSkjJG1y9lkb3E6Wh4PrjQPO1/tpqClDiU0XYCodWGojaafG3jL82ltyk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCA4D4BA2E0D Received: from eig-obgw-5004b.ext.cloudfilter.net ([10.0.29.208]) by cmsmtp with ESMTPS id xrP1vr9R5CxrGxrujvcRTO; Wed, 04 Mar 2026 19:29:45 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id xruNvU7mTqfpWxruNvb2An; Wed, 04 Mar 2026 19:29:23 +0000 X-Authority-Analysis: v=2.4 cv=A55sP7WG c=1 sm=1 tr=0 ts=69a88829 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=Yq5XynenixoA:10 a=ItBw4LHWJt0A:10 a=7d_E57ReAAAA:8 a=S336JCWxiBRLtvTngzoA:9 a=jhqOcbufqs7Y1TYCrUUU:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iOAc/Yc5a3G9FHlh5Uviwdz0tsbWvsyQkXykqmuyfbE=; b=uK1Lp+x3Efgd/c6hdIe1J0I1nl jhiLEgQr0kTKunwX/voIIcGrreyCbWntJCORQPUCMNDzgr2cUXeiojn991/vSWP+3KuDV3H3kG8Zo BFk4KMV7C/dnX0SyG0xSdSKLx; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:44114 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vxruN-000000027hl-0S7i; Wed, 04 Mar 2026 12:29:23 -0700 From: Tom Tromey To: Simon Marchi Cc: gdb-patches@sourceware.org, Simon Marchi Subject: Re: [PATCH v3 8/9] gdb/ctf: don't use psymtabs, create symtabs directly In-Reply-To: <20260228035425.422765-9-simon.marchi@efficios.com> (Simon Marchi's message of "Fri, 27 Feb 2026 22:51:55 -0500") References: <20260217195329.3833518-1-simon.marchi@polymtl.ca> <20260228035425.422765-1-simon.marchi@efficios.com> <20260228035425.422765-9-simon.marchi@efficios.com> X-Attribution: Tom Date: Wed, 04 Mar 2026 12:29:21 -0700 Message-ID: <87o6l3o0ku.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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: 75.166.225.82 X-Source-L: No X-Exim-ID: 1vxruN-000000027hl-0S7i X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:44114 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNNVoCK2l1fOED+plEqsMmpENiFeWzbSYzfH32MsbZEZL8WeF0wllLYuM2e2EL04t9OoYVVGRKv+3JYSoMpwBr8CN0cio3qnLacCJHhV4/5cWdUx58Gl MjtUmTrghR03OVckBUOD35xQW8dzrXzpsK4/UJ3NwDVAoVwyDgFlzqqIl+DMfh2YySKiRynVf/039mcevRy6/IkcBXgmiTA1CU8= 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 >>>>> "Simon" == Simon Marchi writes: Simon> My hypothesis is that CTF debug info is typically small enough and fast Simon> enough to process that it's not worth it to bother with an intermediate Simon> step before full symbols. But I will need help to see if this is true, Simon> I'm not sure what representatively big C project I can build with CTF Simon> debug info. Is there even a (source-available) pure C program bigger than the kernel? Simon> GDB is still able to load the resulting ELF, and there are about 150k Simon> calls to ctf_add_type_cb. Before this patch, elfctf_build_psymtabs Simon> takes anywhere between 300-350 ms. With this patch, it's around 400 ms. This seems completely acceptable to me. Simon> In order to access the symtabs, elfctf_build_symtabs installs the Simon> expanded_symbols_functions quick_symbol_functions implementation, which Simon> essentially searches in the existing symtabs. I am pretty sure this is Simon> not 100% correct, because this would search unrelated symtabs, if for Simon> instance the CTF debug info co-existed with DWARF info. But it's good Simon> enough for a prototype. In light of patch #7 this paragraph is obsolete. Tom