From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id K19PNjHJwGhMSD4AWB0awg (envelope-from ) for ; Tue, 09 Sep 2025 20:41: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=cyp90Dn9; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id CCC501E047; Tue, 09 Sep 2025 20:41:21 -0400 (EDT) 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 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 390971E047 for ; Tue, 09 Sep 2025 20:41:21 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 68C6F3858C52 for ; Wed, 10 Sep 2025 00:41:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68C6F3858C52 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=cyp90Dn9 Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 0324A3858D35 for ; Wed, 10 Sep 2025 00:40:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0324A3858D35 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 0324A3858D35 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=1757464834; cv=none; b=RN4eNcpaSXRq1HoSxW9UCOFJ6fBFjWQfG9SbmILUBiG1laVpicr/bR7Mbbjm+q39bX8oQyUb/3yok0INJIw4s3u9oM/u2ds0QqsGrydWJvIRYPZ+umMpy2lddxXL3pKHDkmOdDTnQ1CfjrW5al+/qxf5ZsSOMYG4W5FM/h5Q9vc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757464834; c=relaxed/simple; bh=B2yGdojCL6Zlp/y0ryEvLZKJfhNirzqRVH9wHLCs828=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ITvG01cPyS2FP4E4HprZt7vnswgv9G00KGzJgj/rHtiZgvMqD3I3I6HUwenY2hP0JlqU4mUnExbGQBLaoBZB0NEeAF4J5Wo6WoYNsaG5msATmKDXplo7CWd2e4WOWcETbdoE8X6qImrJAyO+YTBcVIuyFU0EKTbRkakpr3evsCw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0324A3858D35 Received: from eig-obgw-5007b.ext.cloudfilter.net ([10.0.29.167]) by cmsmtp with ESMTPS id w6NfueGtLv724w8szuGQhy; Wed, 10 Sep 2025 00:40:33 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id w8syuTaNJEYttw8szuRwI5; Wed, 10 Sep 2025 00:40:33 +0000 X-Authority-Analysis: v=2.4 cv=K6MiHzWI c=1 sm=1 tr=0 ts=68c0c901 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=yJojWOMRYYMA:10 a=ItBw4LHWJt0A:10 a=NAbsbu_26n1YGyEf8jMA:9 a=VS4QxaUSPT0UtbFnIvSC: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=aJNpnxks59bK8kUf9HT680HvrzaINzXGO/psXgZ2cyE=; b=cyp90Dn9Qzd5BSclXHwndb5+Et 7ZyeC6kzafChrKaIs8w+HOYyVfFn8JJgB6CFwhzZgVPWTx+U8bpNL7n3FKB+B58Z/n92T8ZLWOZIY aQNgitgp1/FK4M4VoR7WIBxhp; Received: from 97-122-110-68.hlrn.qwest.net ([97.122.110.68]:53276 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1uw8sy-00000002BZv-2JlT; Tue, 09 Sep 2025 18:40:32 -0600 From: Tom Tromey To: Tom Tromey Cc: Kevin Buettner , gdb-patches@sourceware.org Subject: Re: [PATCH v2] gdb/dwarf2: Add symbols for function declarations In-Reply-To: <875xdwsye2.fsf@tromey.com> (Tom Tromey's message of "Fri, 05 Sep 2025 09:38:13 -0600") References: <20250703194719.2254338-1-kevinb@redhat.com> <875xdwsye2.fsf@tromey.com> X-Attribution: Tom Date: Tue, 09 Sep 2025 18:40:31 -0600 Message-ID: <871pofgmww.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.110.68 X-Source-L: No X-Exim-ID: 1uw8sy-00000002BZv-2JlT X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-68.hlrn.qwest.net (prentzel) [97.122.110.68]:53276 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: MS4xfBbnzK4r1yriolsXgh7nRZTHXllp1ZpoYqwoU7wHRW1LXZouRsASINeZiW4MKv2Lcv/e0Mnw9OonEzrLnczxGpIB1FszFZ97Fpc12s9ZO0o9sKIXcM05 m3czfsHPRbddpKcaYj/1cESHlv7W5Sxnw/KX1DKwsbyAg1gMnGtFqLaK+qWTfz5qAHiBE2NZ88/+hKUxRPxj66WrzCU87Kty57c= 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 I've been thinking about this some more. Tom> Do these declaration symbols end up in .debug_names and .gdb_index? I Tom> suspect they should not. (Particularly for .debug_names which Tom> specifically excludes them in the text of the standard.) This problem is a quandary, since if the symbols aren't added then there will be behavior differences between the index and no-index cases. OTOH adding the symbols means going against the DWARF standard (we could document it I guess?) and also would mean maybe bumping the .gdb_index version and/or updating gold (if anyone still cares). I did think of a possible upside, which is that maybe this would let us get rid of the DIE range map in the indexer, since I guess scanning nameless subroutine entries would no longer matter. Tom