From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iCnFL1Ygjml5LzgAWB0awg (envelope-from ) for ; Thu, 12 Feb 2026 13:47:50 -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=EdYxWEwO; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A2E611E08D; Thu, 12 Feb 2026 13:47: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.4 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 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 A9CD11E08D for ; Thu, 12 Feb 2026 13:47:49 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 2D1B64B9DB49 for ; Thu, 12 Feb 2026 18:47:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D1B64B9DB49 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=EdYxWEwO Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id A8BCE4B9DB54 for ; Thu, 12 Feb 2026 18:47:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A8BCE4B9DB54 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 A8BCE4B9DB54 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=1770922037; cv=none; b=pDM/wdElbZiFWBjCv5m/kWbjI1pHZ3CFx9ZPVnuMe71EfD5KIDlo5MBd5TmZxUnCwFiH3mElDy7rbo5Ub4i6rmjDPzhhkyljbYrkK7VdnrLoyXU928Ng1ok+GFZsaCeoxmHsVLXGWp2kokTkKLgQwlkwM2wYRmz34+EVC38vStA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770922037; c=relaxed/simple; bh=GS0VMzIukyKS5EWz0kHA1Z4bEvWzEVVwhxcUGYfKU2c=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=sk3y+Y9U8r43dT35048hfugaJYvWWJySOtxOPqDu8+G5zxRqq4Rde/1K+npmBpzXgfzLknL+VaEN7Z2W2P/aU8oZ7QyMSAb5cKPEOlPU+C6yl9NhmDa+8MbZvg5E9NBs0W44DXeSSUhhIyJ3c+HNROjuLG2pyk+0SbL6CxneRyE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8BCE4B9DB54 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 61CIlAKh090983 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Feb 2026 13:47:14 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 61CIlAKh090983 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1770922035; bh=hcMVYSbysdoxkVdI9dC7Dzrnpi+IPMIiDqDvlf1pZNU=; h=Date:Subject:To:Cc:From:In-Reply-To:From; b=EdYxWEwOA58TiyveEuFWDm3FNlfLDlBRe4Iv/VEcuaqVz8/NuGPILABWL6b09XkTB qmHuIz4qmunaIAl+lzqqgVrZ+hx5TR1jZYlc/uCBjEtMEF7fnjbL5xZ5HMC5C8vBW/ +psrTqo5r9Ho9NYSsqReU0Sq+OqBghaPr1x/BgidUAHxq6MeRIXtLu8FeXTaPRr0K5 n3fBsrXUF5alXACpmCnG8VeRTdmI4XWG+GnAmR8vbCmqJBckoBYJ7gT1KzpuFwc3l7 NFbOEJVfvMJudcT/EywXpirKVRkkRYVpggYWXJJvI0mSG7XrHBzGfN+fCWFqjqjmPM sQkQsaWRXnOPA== Received: by simark.ca (Postfix) id A64E61E08D; Thu, 12 Feb 2026 13:47:09 -0500 (EST) Message-ID: Date: Thu, 12 Feb 2026 13:47:08 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 0/8] Make CTF reader build full symtabs, get rid of psymtab To: Tom Tromey Cc: gdb-patches@sourceware.org, Nick Alcock , Weimin Pan References: <20260203065435.3092465-1-simon.marchi@polymtl.ca> <87bjhtalot.fsf@tromey.com> Content-Language: fr From: Simon Marchi In-Reply-To: <87bjhtalot.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 12 Feb 2026 18:47:10 +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 On 2/12/26 12:58 PM, Tom Tromey wrote: > Simon> This is an RFC, because I would like to collect comments (especially > Simon> from the CTF experts) on whether the startup time remains acceptable, > Simon> even for large programs. > > I'm not a CTF expert but I read through the patches and it seems > basically fine to me. > > Simon> I also think that my use of > Simon> expanded_symbols_functions in the last patch is not quite right, I'll > Simon> need to look into that further. > > We've since discussed this in a different thread, where we contemplated > putting the compunit_symtabs elsewhere. My plan is indeed to make expanded_symbols_functions to hold a list of compunit symtabs to search. You can have a sneak peek here if you want: https://review.lttng.org/c/binutils-gdb/+/16557 This way, you can have two symbol providers using expanded_symbols_functions (say, jit and ctf) that both push an expanded_symbols_functions "quick" object. Each object says which compunit_symtabs to search. > The "bad" scenarios (which I think are just performance and not > correctness -related) only seem possible if "always-read-ctf" is set. > Which presumably few people really do. As I stated in that other message (I can't find it now), I think it might have to do with correctness if we consider the ordering of the symbol providers (quick symbol functions) represents the priority in the search. Having expanded_symbols_functions search all compunit_symtabs would mess that up. Simon