From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id TTxHGoAIh2rXajIAWB0awg (envelope-from ) for ; Thu, 20 Aug 2026 10:00:32 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=U8SoH9nY; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 572DD1E033; Thu, 20 Aug 2026 10:00:32 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.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 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 6CD431E033 for ; Thu, 20 Aug 2026 10:00:31 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1C1784BA900D for ; Thu, 20 Aug 2026 14:00:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C1784BA900D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1787234429; bh=90MoQDeRoGZJi5egPXd9Wk2HwyqUAYafXicJg116Sjw=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=U8SoH9nYP/HrgqpsdMFqBdBgPb66JgQDWvCLSyYCEFxwtKFEpFAHXJ2DB21anvzCx FX0P505ddTgXrr0m2TMMS6l5bp1L46lA+vWlvLKkLy5KwbzmSdm5C2ecxa2f8qMLmF B0mPI5Az9LiSBVZu+PyjAbGOxAPgoeRYBqBfmJkc= Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010043.outbound.protection.outlook.com [52.101.69.43]) by sourceware.org (Postfix) with ESMTPS id B339D4BA2E04 for ; Thu, 20 Aug 2026 13:59:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B339D4BA2E04 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B339D4BA2E04 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1787234390; cv=pass; b=WAkLdehUN3B+aC+ryz5FZMsLoha0LWxkpspMI4QkhzRLRKJhNwmc9p9iPFwi4aIdS9ToxOa2hlJJmioMRbdnA5apf6I0/7IxrGM0FaGCKFKQYesmov/QB4X+ReRsXr7kw8vv1nZZFLTS72VE5D83rKWsHtE/Yp79NvPMs8b40ig= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1787234390; c=relaxed/simple; bh=i370fkjSDPLKpWXAE1YJ/uYmC5HHAG+M7RUvRICjfrk=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=sr1a3Tn8bW5yu4Y6fYpdlNDJI/GWzQr8Qxb74INr3y4XDqhZ5PgSJ1Spal+bzYgVqheVqhhSvgwWlteKI845zamyGaumNTNRtNXZIV3YP/MsyXv/H4zNswpVPxMl4PTNUUD8ScfY2dmjXNDiGksofmSzWQ/XlWI/St6daHgldaA= ARC-Authentication-Results: i=3; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=b6MTpvRM; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=b6MTpvRM DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B339D4BA2E04 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=jr2Tky/ZSh+sK2vscy6Dog0X1b91PLbQfusk0huH1BMZdr4hhjDgtSCcQTr5YH5fDIBpdDlAL8DPq7RlQDMcX7CCDjRH5v2VJD8CmBMpHezFMDsgysareSmgXvMMq5+n29a9YQFFx5q4tnSPilGH6CWoxaszjRKW5nrrs2tQIrfeMV/PhM2yrJwexJ9G9holC6Biasli5KtMqHusj0JnfaqH3TwyXFfeglQAB9tFaUJejkglM0hDtwSk2FRMEx6+TrBNJx1Qq/Lgejmi65xWd876d+0bTClQZqoDG+KjV3Dsomhp1qU4EnBwseZb/2gEF6zSxA/RgscHsISIuFf1mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=90MoQDeRoGZJi5egPXd9Wk2HwyqUAYafXicJg116Sjw=; b=T+kuhe/tKDaYFX6weLZnidIKBKJtiSGdaOUvYR0GBsjop+RyaosOiHXtg9M7dEH3zEJyAib0D0VAVa6Q6/Kz4do8SCEDN0SI/VXEHtSYxzrJkPHc79Dx/MGne7p+JeMo84VDhHF2ug/2yek0V/1DGu8zVmQWpM+wsqqF3ggi+kGIajWS+KYyaG27K8iN6qedyXy7E3yvDFskh7mkEmfdC7JnxmcLY41zRtnJR3iNjFle+/ndlG9qcea5DRh/uQOXxLBNa3Qu0SB/UxbZ6babKBhpXXej7k1PZJa3m6ce0nrixVB8JTYWTvHEKeO+RiR7SCqP0fd0Ps0obxprCuJmJw== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=tromey.com smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) Received: from DUZP191CA0068.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:4fa::29) by VI0PR08MB11648.eurprd08.prod.outlook.com (2603:10a6:800:309::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.339.8; Thu, 20 Aug 2026 13:59:42 +0000 Received: from DU2PEPF00028D0E.eurprd03.prod.outlook.com (2603:10a6:10:4fa:cafe::47) by DUZP191CA0068.outlook.office365.com (2603:10a6:10:4fa::29) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.339.9 via Frontend Transport; Thu, 20 Aug 2026 13:59:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by DU2PEPF00028D0E.mail.protection.outlook.com (10.167.242.22) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.339.3 via Frontend Transport; Thu, 20 Aug 2026 13:59:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SJMORzfESLAuR71aZqbjXey2RYXn1yt3ONNHHeVLTeMPXAiMT29ixT4tD4w2dLV9Ds6GPMTKx0qE80EY0n+6PUpH3wFGQYyZ1zyYl0GzpuIjgh6WrlVD3cyXw/RjK9NLJiCB/Zv75As+xgPMK+Kx7G/yZCBvh7j6HqI3OE5PirgNgiaaPMiR0XuQHrHsPMFWLK/Tv8Sg9+uifjGg663u3gNqxKw+lWvtvPHiA5jpTHLNTx06vrsh57yp6cyB6ajyDT0sFvu+GtQXH5i+qWdwMI6qKH/OX51ejwxiEWL9ppBra+5w3lVD9ME5FfizoVjU4DKhUPB4xBQ8xLZAUbndPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=90MoQDeRoGZJi5egPXd9Wk2HwyqUAYafXicJg116Sjw=; b=Zj1Bzsnq6CfEAVCJ7L/3JhPYul4ptteh/HWHY9YaTmnJvtiGjQaiALn3HNrtB7BRc4M9F/TiSbIf5rcpTHCyO/adq/eS8CFpafv6WSh9FgktKt5CaJWinycKHVOjE0logjNoJKGjguWimYr4yfW7UFvxgMquSuM18RHw2woFXkks+SufmHpD+LSBADbfGaXoHv0m2mJeKj0hTsBBDV7R6dOENA9gVof53qmjAkdbfk/+ror1bsVASbZni0xRL9BFimVwWbHdpsIX838M3A1Jvv8+K8bLcDfDQGtG6Kpqp4i6p+dw0IrQjzoBOph/cAe1ioZoMEiFML1VXKIZSTN3eg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB8659.eurprd08.prod.outlook.com (2603:10a6:20b:563::10) by DB8PR08MB5467.eurprd08.prod.outlook.com (2603:10a6:10:11b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.339.8; Thu, 20 Aug 2026 13:59:08 +0000 Received: from AS8PR08MB8659.eurprd08.prod.outlook.com ([fe80::96bf:2de3:5eab:70ae]) by AS8PR08MB8659.eurprd08.prod.outlook.com ([fe80::96bf:2de3:5eab:70ae%5]) with mapi id 15.21.0339.007; Thu, 20 Aug 2026 13:59:08 +0000 Message-ID: Date: Thu, 20 Aug 2026 14:59:07 +0100 User-Agent: Mozilla Thunderbird Subject: Re: RFC: prototype of C extensions using the Python limited API To: Tom Tromey , gdb@sourceware.org Cc: Andrew Burgess , Tom de Vries References: <21479c1d-3a9a-4ae2-bc1a-5dc19871f275@arm.com> <143b06a7-117f-4500-a911-26f8f79eef2f@arm.com> Content-Language: en-US In-Reply-To: <143b06a7-117f-4500-a911-26f8f79eef2f@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0366.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18e::11) To AS8PR08MB8659.eurprd08.prod.outlook.com (2603:10a6:20b:563::10) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB8659:EE_|DB8PR08MB5467:EE_|DU2PEPF00028D0E:EE_|VI0PR08MB11648:EE_ X-MS-Office365-Filtering-Correlation-Id: a7c746b1-f628-4b69-3148-08defec34875 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|376014|1800799024|366016|23010399003|6133799003|4143699003|56012099006|10067099003|11063799006|3023799007|18002099003|22082099003; X-Microsoft-Antispam-Message-Info-Original: Mb3W4m/eIMefjnIawE3yjf3ZGKA9VSRWOJk9BEpKWtOMRPekVmEl/LxdMC2eKxfJDT1pXVAAn+FLwHU5/DjZpvjLNKntwQl0Z1v22NTt/hLJu0xocTsqJcgtJgx2EcTWXoZ7lwnkLpOXt2mSc08678TEvFV2lxU6fHKNqqNPBIaU2dETup2BH/BymGbiY8xv603zOT+M+rfbkI5KnF1FFQPzIkU2UtLGgO2+GlKzZYw0Bo89+uJMcsC9tDkyicQOvivV6hbGC8B4YXmVVrUduvTFKXa4lvK3EYWP4GhFkJ7YJwKzUu+goTPliQcxzjSxmN0i6DQPbJxLpEQiHpGRdhzVPXjBcrSHe06ihNDxbTvB8eW7P7vjOixlwrOlW831sZ+PrMvrko+t+/B2XBN5R66eTFvN9dqR66yKErSIqrqkNDjdfPqAPZ+/VvyM05T7DLyP0WeVOIseQMjkkXAgn8k/fKvBY+ejnOe+b4lU1EetDIyhDYzl9LivthV+BQvDiJHqk0cUXSrvvegnuX6LPMhxWMX79eoctd9gUEJfz020iGD5CLcqjSSPEMRwl/zIBzR1K6CxKeJ2fUsyCq0BUCzQQDO1EEkDbWX1cYoCTg3XRckN6wZM+LKDbZzPg1AAdSlUabMLi2rXPNNHJV5usx7tOoa4qgOhADuvoSXiXzA= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB8659.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(23010399003)(6133799003)(4143699003)(56012099006)(10067099003)(11063799006)(3023799007)(18002099003)(22082099003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: ZOG+Wls3dLTZBsDpnLZd0rBgCd2zZ1+F2n6ckMCI/dTOSUC+ReJ8BMZGd/N8yN1oDUDG7YH0WmTwUag+BM5LTUQY0ZqGeeiDDyw8jJXp7HqMV1fEbqOsvzTSKaIMP5M+ynpxDnGK9lfalPceSiC4Vqrps0JYDYrZzAslHMviyKyjqa7P4PEjsUr/FUybtQrckpXfGLTSXZUrc8M/esNHqiRQ/gg9yKjsSRXOwq0TWpxtCBLo5ysWeGnXNmH3gTwv2eUembttFDohtgT6sT+xdTL3xdUCA8wdjVLKAQ08KPrZsAyaxVi/+2nkn52Sx0m9Ab7O5V/Q9zEYFA6F3Qd64g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5467 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028D0E.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8469588e-39c4-4a3a-99aa-08defec33477 X-Microsoft-Antispam: BCL:0; ARA:13230040|23010399003|14060799003|35042699022|1800799024|376014|82310400026|36860700016|10067099003|56012099006|6133799003|3023799007|18002099003|22082099003|11063799006|4143699003; X-Microsoft-Antispam-Message-Info: E9DSAPakPVdCm7fjySUgUkDW0Zxwj7wxzzhYDFCKil+UQ8RstUp8zIhzVWvJ1eqnsFKPctqYv+adinQQpt7FPCFNqLxMMPadlUm8dmpSOrp/4yh/S746VT60qPkXvcthECdzpxyPr/gZtp/7sfl+by/G2gMU757UevSElDDFe7Kt2X0G6iXlc0k+9xnZF9ZoGDwk/PZi2G7lqSGgNpTkVHIt8Ve4ljc+EyXL8xvnEy3nnUN4J/y9YTszpUdWqXHM40/40vMr4xGtZ/OWzmvgAb9FGzsmMtfI0YTN9XhV6xCetEWQETC2bVE3a2H0Yv+yFBvz6ebW5GC8BGIQyjQ4i9ecrEkcokD8JTDn9HfwjwDFyYwh/+SVTATPkkqL88xf2HQmBCIlQMQuaGg1ePui/Ijqh0wREbOQ1NkkKay2aavZTA/xwjv4Fd4MNVTmMOJOScIJo7lrOpnxzlaYx+Px7GHtVQu4dK7UgtUU9BEPONx8YHgp3Z2SXF1P+y+hBGVO844Y/7Df5RyhN7m5Ctj0wY9y3dMKZfVMKsmJYBorfaQSZIeVfpOqXggpVk1KVjsYnHbMF3PGckpvyGcVLvuJhdkjIFtN/+um74FiXp7sR6GpWv0cFgNal0W7YeRoiSchFq/8aWWV7fnIffrl9eHruFmWSs1xqlaYZqUG7nEf+MkXR9AXIGFP5ejjMQsvf3D4tu5nwCpnkTuO4V0bedMhkw== X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(23010399003)(14060799003)(35042699022)(1800799024)(376014)(82310400026)(36860700016)(10067099003)(56012099006)(6133799003)(3023799007)(18002099003)(22082099003)(11063799006)(4143699003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3MR/UgexljSnFflDOOq2bpumyNdPIgpz9LuzRXzTh2z1EmczxK2J/H48gHHOGO+kLYC2MWdwLHSyOAdTUyx2bAribKy3krqCDTpBeDwJ04vhNEWdhqybkA7q5vxxflqQnzrJakq4Zxm4QEss8J+smg43G9ILKvIuIrqni4wU8n+lYobAfZWn5/IBtaaTXtqsU6hPbLF3agH50Sk3zf3riQnDL9ejTO8aDIOENu/NMlnax1mIm1rJTPh/N7JUKsuInv+sLK+kcGLbliylsajxWw61smgykRdzAWiKreESMYYIto2aV1aH2vVr6I++TP01mC/lvL2L7lf2LIsBpHXUbFrXxfk6GWMmAwasrLTWr53NuuLZQDdn2ZZW7VOj2wYr9Uavgs3Jd9SF6EOb5+bFhF3ITJ1AhYb2ED6YteMc1RuVQ0936ihTDd3YQVpbwUgb X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2026 13:59:41.9886 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a7c746b1-f628-4b69-3148-08defec34875 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF00028D0E.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB11648 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: , From: Matthieu Longo via Gdb Reply-To: Matthieu Longo Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 22/06/2026 11:24, Matthieu Longo via Gdb wrote: > On 28/05/2026 17:24, Matthieu Longo via Gdb wrote: >> Hi Tom, >> >> As I previously told you (at least, I believe so but I am not 100% sure), I finished migrating all >> the Python C extensions some time ago. I had discovered some issues with a case of inheritance >> causing unexpected crashes. >> To facilitate the debugging, I decided to implement a prototype outside of GDB, and managed to make >> it work. I finally got the prototype reviewed by Victor Stinner, a Python core developer, to double- >> check whether my design was working as expected. >> >> Please find attached my last iteration. I also provided an archive which should be more convenient >> for you if you want to compile and test it. >> >> Could you please review it so that we validate this new approach before I migrate all my previous >> patches to it ? >> >> PS: >> - a README is provided with all the needed instruction inside. >> - this patch contains code from outside GDB's repository, and should not be merged inside GDB's >> repository. >> >> Regards, >> Matthieu > > This might be easier to review. > > Matthieu Hi Tom, I noticed that lately, Tom de Vries and you have been working on porting the existing Python C extensions to use the Python safety API you proposed some time ago. That's good to see some progress on this side as I might use some of the introduced structures into my patches. However, those patches have created a significant amount of conflicts on my development branch. And since I haven't heard of you for a while regarding this prototype, should I understand that you would prefer to prioritize the migration to the safe API before the migration to the limited API ? Also, do you think that it would be helpful to discuss over a zoom call the status of the limited API migration, the prototype, and what is remaining to be done ? Please, let me know about your thoughts. Note: adding Tom de Vries in CC as he is working on the Python C extensions, and might be interested in the discussion. Regards, Matthieu