From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MImnMO370mcGVg4AWB0awg (envelope-from ) for ; Thu, 13 Mar 2025 11:38:21 -0400 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=h5HVpSu3; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C2C9A1E10A; Thu, 13 Mar 2025 11:38:21 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 28A011E08E for ; Thu, 13 Mar 2025 11:38:16 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C24CB3858039 for ; Thu, 13 Mar 2025 15:38:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C24CB3858039 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=h5HVpSu3 Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 4D7B73858D33 for ; Thu, 13 Mar 2025 15:37:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D7B73858D33 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 4D7B73858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741880263; cv=none; b=jxszwCtR3YcxMJuG0jzVM8QIooP6SP9JJVmLLfzgvSUxXQpYUF6VDfaRHutr5cCn/O6v6PC1za6m7Flr+MMW3z5hEp/EmnJ4BBXD4DpYXcnz5brTKLsjkLRF6q1EpLrefr2trkeyKHd0IWTHFScItLzYbdLrufmmJ1ZIfQb/CQo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741880263; c=relaxed/simple; bh=bbDhNfilfPxO//aEipFpVWF1wwJWDe9BrwQRdsKfnfI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dCRryNkHALB5AWP6g5kDxkHRg9VkfMRZq8Fb2IBkrVrlAOS1r/3Kbwr4SAsE/bYxV7KXABLhfW8oidtuMm2GT8/7iYweAjs7JbsPt30TyBhSepZkuW7bytDy/oxWdQLQG0FfqhCgRw6yBzQTBzNe7lbmPAzhkS8vqbbEpwmYFC0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D7B73858D33 Received: from eig-obgw-5006a.ext.cloudfilter.net ([10.0.29.179]) by cmsmtp with ESMTPS id shELt4r7XzZPaskcxtaxpz; Thu, 13 Mar 2025 15:37:43 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id skcwt1GnpdTeZskcwtbAfs; Thu, 13 Mar 2025 15:37:42 +0000 X-Authority-Analysis: v=2.4 cv=XZCPzp55 c=1 sm=1 tr=0 ts=67d2fbc6 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=Vs1iUdzkB0EA:10 a=ItBw4LHWJt0A:10 a=pGLkceISAAAA:8 a=f9GH30_omjaiij1e318A:9 a=6Ogn3jAGHLSNbaov7Orx: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=9mvV/cC5a7QuFSbn/mXfSrCZMcMcNeM0b1NK40aWSAg=; b=h5HVpSu3OnSExAdPNpzNNEjw2U +16DgDGaLQpSt6FYj2b0Jk+8QawDrv4vdqMY2L+pHvKtUoVs1u4WRNYvUXWiiAxfa14iMKTsVdE5A IOU0iasMarty8cQO79CvPCd2d; Received: from 97-122-96-32.hlrn.qwest.net ([97.122.96.32]:37842 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1tskcv-00000003QSw-2IA7; Thu, 13 Mar 2025 09:37:41 -0600 From: Tom Tromey To: Dominik Mascherbauer Cc: Tom Tromey , gdb-patches@sourceware.org, dominikmascherbauer Subject: Re: [PATCH 0/3] DWARF type signature lookup fallback. In-Reply-To: (Dominik Mascherbauer's message of "Thu, 13 Mar 2025 11:42:26 +0100") References: <87ldtaqkeq.fsf@tromey.com> X-Attribution: Tom Date: Thu, 13 Mar 2025 09:37:39 -0600 Message-ID: <875xkdq6v0.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: 97.122.96.32 X-Source-L: No X-Exim-ID: 1tskcv-00000003QSw-2IA7 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-96-32.hlrn.qwest.net (murgatroyd) [97.122.96.32]:37842 X-Source-Auth: tom+tromey.com X-Email-Count: 6 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfGBMankXGJO4pt0pgmuaPQJNSUATycwzR+3hXjWMU2kMaSWmuYEnK6yZkJr9+zo5BOtnRAxWx3karftnGWaCbgZnFtKJT6EKlFsCBxNIK8WGnFRxH9j/ 69Iwpr5OpeRXbcBLp1k9uiVmOxgtAQP5Lg5J1UF+Zhec5mbQauXyHz1+88Mog6CDV2fdB91BdLBMXYYUseoxo92mR6j95Lo3y+s= 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 >>>>> "Dominik" == Dominik Mascherbauer writes: Dominik> Thanks for the response. I agree that this series violates rule 2 as you Dominik> mentioned. I was not aware of those rules at the time of implementing Dominik> this patch. Totally understandable, since if they are written down anywhere, it's in some comment "somewhere". Dominik> My initial idea was to use type signatures as they should be unique even Dominik> across multiple objfiles. Based on that I thought it would be possible Dominik> to use type signatures for finding type units in other not linked Dominik> objfiles such as objfiles coming from the JIT compilation interface. FWIW I think your insight here is correct. Dominik> I tested opaque types for my use-case, and it did work out. So, I guess the Dominik> best option for me is to adapt the generated debug info for opaque types. I wonder if integrating type signatures into 'struct type' would be possible. That is, an opaque type could store its signature. Then there'd be a new "quick" API method to look up a full type (which gdb confusingly calls "transparent") by signature. This might solve your problem without violating the lifetime rules and without requiring type GC. thanks, Tom