From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 7GgPA+IHgmn2/yUAWB0awg (envelope-from ) for ; Tue, 03 Feb 2026 09:36:18 -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=ZsyRx3+B; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id EB7FB1E08D; Tue, 03 Feb 2026 09:36:17 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, 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 5DB151E08D for ; Tue, 03 Feb 2026 09:36:17 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id D4C144BA2E10 for ; Tue, 3 Feb 2026 14:36:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4C144BA2E10 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=ZsyRx3+B Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id F35144BA2E09 for ; Tue, 3 Feb 2026 14:35:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F35144BA2E09 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 F35144BA2E09 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=1770129340; cv=none; b=gcugmYpPPyvuMa+4sip0/siuhRxiqw+gYA9mz8X8yJijF0ja0G5imrYmunsX2SKbM3CRIfjnSvhR/gcEg/TatQg+st3LSbMzhwiRVhq57Pwljw7KJKIYMqAnepDEYBo5Ut3ocG46DyI9m1jm0unD86WBo3T1yqMGynm4XcDZQX8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770129340; c=relaxed/simple; bh=Bb8yJF57Sh5p594XDaefMNRDZYD9bik2FFbYPMIUybs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=bK2UPEGoKMMcnYIeqvXh9urx6OwCd/rG3+i1yYDNVVLE41ISfdI2vFAnwS2zilj/EOBR6QVrqsQu/MAFGeI+CM/8ZqxtHhW6k632Tkn7gdU+P/+JhQftzNzNutYHJ34nIPpiiKFF2zdD9Ixd+1DX7pM1F6qesbYF67knn/Bah2w= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F35144BA2E09 Received: from eig-obgw-5004b.ext.cloudfilter.net ([10.0.29.208]) by cmsmtp with ESMTPS id nEyovFCGoCxrGnHVDv9eAH; Tue, 03 Feb 2026 14:35:39 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id nHVDvWQLdqfpWnHVDvy3Co; Tue, 03 Feb 2026 14:35:39 +0000 X-Authority-Analysis: v=2.4 cv=A55sP7WG c=1 sm=1 tr=0 ts=698207bb a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=ItBw4LHWJt0A:10 a=TcE7SmrFmiR6bRw0GcwA:9 a=QEXdDO2ut3YA:10 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: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=qJkkKxwfp3xaVurlkr4FARL+lRF4FZXublo9DpvbkEM=; b=ZsyRx3+BgUlJQwtOn9uR8a38n0 Zgh7ndzmM32YUL8KKQy+H/smPXU+JoILXn4ShliUOiFwSrmQ2biGpoiCvOGnoSwNxTn2EyiNwGX5q eg27NbZGgDEOni1tnpRwrH5fN; Received: from 97-118-49-200.hlrn.qwest.net ([97.118.49.200]:43850 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vnHVC-00000002dgH-39gt; Tue, 03 Feb 2026 07:35:38 -0700 From: Tom Tromey To: Jan Vrany Cc: GDB Development Subject: Re: [RFC PATCH 7/8] gdb/ctf: don't use psymtabs, create symtabs directly In-Reply-To: <2e8e28fbfa4894f3f28fe86f698406c4e880753f.camel@vrany.io> (Jan Vrany's message of "Tue, 03 Feb 2026 13:00:23 +0000") References: <2e8e28fbfa4894f3f28fe86f698406c4e880753f.camel@vrany.io> X-Attribution: Tom Date: Tue, 03 Feb 2026 07:35:37 -0700 Message-ID: <87o6m57v46.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 97.118.49.200 X-Source-L: No X-Exim-ID: 1vnHVC-00000002dgH-39gt X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-118-49-200.hlrn.qwest.net (bapiya) [97.118.49.200]:43850 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfK3OWb4/z/sJELHWnTSDfIx2xg2BfNO7v+iDhQfRAAJyOlbXg0W6Of4MUs8a+tzXYq82zysT66N1zs5/WtowAZNADmd85kmGKjVZ9nIGnHg7eyovtWjA Shg2X0AzQ9RTEoF90rHPBxCzvvgKD3N9uDyOgQcklVRL45mt/rCUNlade4MTrWVRWcNHVTNvRQTfeA== X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" >>>>> "Jan" =3D=3D Jan Vrany writes: >> In order to access the symtabs, elfctf_build_symtabs installs the >> expanded_symbols_functions quick_symbol_functions implementation, which >> essentially searches in the existing symtabs.=C2=A0 I am pretty sure thi= s is >> not 100% correct, because this would search unrelated symtabs, if for >> instance the CTF debug info co-existed with DWARF info.=C2=A0 But it's g= ood >> enough for a prototype. Jan> True, but does that matter? Should that matter? If it's possible then it could matter. Consider if you have both a CTF and a DWARF "readnow" implementation attached to an objfile. Now all searches are done twice -- probably won't be incorrect but it will be slower. In some earlier thread I proposed fixing this by adding a marker to the compunit_symtab to record where it came from. Then the "expanded symbols for JIT" expanded-symbols instance could limit its search. However: Jan> Also it seems to me that this version does not allow for both CTF and Jan> DWARF in single objfile:=20 ... do we have any spot any more that records symbols from multiple readers? Since another option would be to get rid of that ability; unless we think it'll be used again. Tom