From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4m9gKFJt4mkghB8AWB0awg (envelope-from ) for ; Fri, 17 Apr 2026 13:26:42 -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=sw1UXnYO; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 93C771E0B1; Fri, 17 Apr 2026 13:26:42 -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 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 09BB11E04F for ; Fri, 17 Apr 2026 13:26:42 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id B48864D108C3 for ; Fri, 17 Apr 2026 17:26:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B48864D108C3 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=sw1UXnYO Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 551684CD2027 for ; Fri, 17 Apr 2026 17:26:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 551684CD2027 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 551684CD2027 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776446776; cv=none; b=w7IchpPJVm+xZN5TZj3IW4LmOvFb/CBzhoPimlfECzvQEdZwd2gFAX4eaiH0TkgVyXhrZzKcCEb92ZCV2f6O8HoLaruPfUnZOhofnb0ixDD/XgQ7vfxojUIIZkwh00PMOn5GER+ZVIbMQOKzgXCLPSB/qdYgXbgYof5wxOYN+9A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776446776; c=relaxed/simple; bh=9kBcwGAmNUqTAnom9g4/u5EV9BF5o2aof02U9LIQbvo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Vu/VFXumHkcOQtwBK4DYOcG957kUdKQl/Nt7zIXNWc3PRRlL09Lt0y6LGjb2tpt39NOVEjkSd41iA/cqcix2Pu4k1QDbgtvRWk2XYPVkjyrOI46u68TtFuD8bxWGgODKTDOjtvumE8p/bQ7w0A/sNitPQtZlmj4fnbOqsJI9bK0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 551684CD2027 Received: from eig-obgw-5004b.ext.cloudfilter.net ([10.0.29.208]) by cmsmtp with ESMTPS id Dknewlw0Mc9KCDmxMwMvzz; Fri, 17 Apr 2026 17:26:16 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id DmxKw4JeKraqeDmxKw6qjP; Fri, 17 Apr 2026 17:26:14 +0000 X-Authority-Analysis: v=2.4 cv=UNPdHDfy c=1 sm=1 tr=0 ts=69e26d37 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=A5OVakUREuEA:10 a=ItBw4LHWJt0A:10 a=7CQSdrXTAAAA:8 a=o58SJG9YsUgOsR5x3mgA:9 a=a-qgeE7W1pNrGK8U0ZQC: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=Z42VBIQWh23LysOoUjhoFTJdpd4j8qgBprD9yHR7qJo=; b=sw1UXnYOetxNO/ceetmoRg4TtM uVo2ieN4jVECUQa+E/2tKEjiEyKPgEF5TER19w1rIYRSpB3NGHg3Tl4Efe2R9UvQ3haFQAlCCP0BI 6Im4i2kU//8Wt4YIN7Gnpjxcm; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:35572 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wDmxK-00000000hve-0XFE; Fri, 17 Apr 2026 11:26:14 -0600 From: Tom Tromey To: Matthieu Longo Cc: , Tom Tromey Subject: Re: [PATCH v1 4/4] gdb/python: work around missing symbols not yet part of Python limited API In-Reply-To: <20260409105155.1416274-5-matthieu.longo@arm.com> (Matthieu Longo's message of "Thu, 9 Apr 2026 11:51:55 +0100") References: <20260409105155.1416274-1-matthieu.longo@arm.com> <20260409105155.1416274-5-matthieu.longo@arm.com> X-Attribution: Tom Date: Fri, 17 Apr 2026 11:26:13 -0600 Message-ID: <87eckdsdl6.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: 1wDmxK-00000000hve-0XFE X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:35572 X-Source-Auth: tom+tromey.com X-Email-Count: 9 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfE55iVWZC1zob6MbckXKRxbqPExFof2U6PHHBJuHrD2OML2j7Cbw7IzrLRMup9JIcoGeV4ZF7utKwC44y4Xlh9jdvoFAMPQkgJdb0hM86WI8bZTaw7tT twf0E9eBFqEnDcuuJsof8Klv+SRDp20cN1TR4XqPvod0xUN+q/lDSvohBm7kEQdneJtRIPn6zlJOq7LTfS2azOHvG8SDk0bcm24= 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 >>>>> "Matthieu" == Matthieu Longo writes: Matthieu> Since no limited API alternatives exist for these, and given their long Matthieu> history of ABI stability, one approach is to expose them in a GDB header Matthieu> and rely on their continued stability. While this is not without risk, Matthieu> it seems acceptable given the arguments above. I'm not opposed to this at all but I wonder if there's some way we could arrange to check that this file doesn't get out of date. Like, is there some way we could have a file that includes both and this file but without defining Py_LIMITED_API? Or alternatively could we segregate the code that needs these APIs and compile that code without Py_LIMITED_API? (Removing the need for this file?) Tom