From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Y57OCwFuGGqDACMAWB0awg (envelope-from ) for ; Thu, 28 May 2026 12:32:01 -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=EpW452Ig; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1E60D1E062; Thu, 28 May 2026 12:32:01 -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.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,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 6F6761E062 for ; Thu, 28 May 2026 12:32:00 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 56C254BA79B8 for ; Thu, 28 May 2026 16:31:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56C254BA79B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1779985918; bh=qziZkyiajB8xdy7UgM1E/4gdyo1C7W6rZu8GafFhjkU=; 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=EpW452IgyQH07qRqH2BrPK3rN/WbdzfbdZqivWwY7ITSTZx9Fq6Nod211IhS0vccr DPG+k0QwwRfJ76iNtA181buzUSpjf9STSOZwrCsiwV2+nxiOosuQKNDvxbX9QqiNjV p5/TFiuntuHGYf0snpTdpaOlHVFWP83guy/nRZso= Received: from GVXPR05CU001.outbound.protection.outlook.com (mail-swedencentralazlp170130007.outbound.protection.outlook.com [IPv6:2a01:111:f403:c202::7]) by sourceware.org (Postfix) with ESMTPS id 8AFB94BA799E for ; Thu, 28 May 2026 16:31:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8AFB94BA799E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8AFB94BA799E ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1779985881; cv=pass; b=gkPaJHF1WvUgY2N16GyH0EzqvZDrBEsD6tmCNOsPRyO+6rZgh6LELS7Qi45rdX+tEyS8l/lEX34RMX0XTzzdSEkyS+tN4dRwTYlXvt/N/KZuEJQj6vpwISrHHYubiQdpFlu43bqXYwjkrWMSnP3zA7od0qp6ihyh2+QmZrsFrmA= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1779985881; c=relaxed/simple; bh=K28qSNBgXeUGP9jOTvx8/gDpauCvS4yRboxtRiz7rVE=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=ti57y20hFojJKaBtWOm1AET4E5/3OfbtJfcBmBSFteuFoW0Q2L4ej79UE5a7OHKZVIN2BOqog2OMztmN+StA6PeFLXYrt5LC5Sd2QPETOiiaB+GoaPIxdqLoJk4ooDxpEGRB4iwsBJnEn66eBNdtDKUDD8zduPMUD1X6Z2TTjR4= 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=fdQh1lrc; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=fdQh1lrc DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AFB94BA799E ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=tfIHOW3I7MaIeHHJKvb9evJlF7F7ml2RS7HF6x0WceIDv72aX0u389q8rSxuwlX9+zJn5TvGA3DCe1pzHTLbuTEIKUh4P/HqKNC5lxBPo/vwyltNUe2VOaxR/J18XF6QGqATQb534+KpHZRWOBo3e2o6YHfgS/tQJKFm9BYnMVvMIslZwNDE2oVBREdD/N/zaZNWEJEML0gVHWTJD6PeDJDQuM/l8L3+gRwn6ChPRqglL2g6Z7VWsKyuOfDJCpEx318JhW6i1MuEEqIuSuFKaiUinnwMtE/hSWlnDHr87otA2VGjv0l3gy+lkygudYsgBJ1iTXb5QUq/3Va1Yu3ddg== 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=qziZkyiajB8xdy7UgM1E/4gdyo1C7W6rZu8GafFhjkU=; b=hJTsZohK0M5HUN8XA6HW3jQhXKVoemCWXerMkyau0J4+JOh8weKA7j/LWajl9Opf9i7TsKL+3kJd/Duq8HxNHvmX5zJ9iS6haD1tgXuBGVKJi8LIgzogEu/JM9IQ6GFmNt838pqPl5QZTUksLt33Vs3XnbuQTlPhCN4KDxzKYg0OqXlbKrdlzSu0ajwT5/YgHmrzA1GRI9MjIWI0UoKemONmtpdAdui6qDZm7fn9Thrva1LE5lVNsmNBkZWXuH96aLZKeJxSXELFmaoeguCrzIuwtbaLUPjVA26Fc5HHSc3SXROVlgkD3wTUL4GtmVTAhOrCYzb8nv4HbNKM3bF0Kg== 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 CWLP265CA0519.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:18c::9) by AS8PR08MB9742.eurprd08.prod.outlook.com (2603:10a6:20b:616::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.71.13; Thu, 28 May 2026 16:31:12 +0000 Received: from AMS1EPF00000046.eurprd04.prod.outlook.com (2603:10a6:400:18c:cafe::5b) by CWLP265CA0519.outlook.office365.com (2603:10a6:400:18c::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.71.13 via Frontend Transport; Thu, 28 May 2026 16:31:12 +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 AMS1EPF00000046.mail.protection.outlook.com (10.167.16.43) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.71.7 via Frontend Transport; Thu, 28 May 2026 16:31:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RHqcp6LoTQt5tWqn3C/WqTe4IVpG/jDU3+0FsnUVfCmD43qzJIvqt9r3AkkDaCSgiPRdgJDaQrKrOno0cu0PcFTtPtHxsQUYk9cd7jkpljanLUoefGAJzJRtYaDRtt/uebhu+05m3cnRExR63Ph9CyVp+qo0su1RDJJ9PZ2ECvU6nh0KHB7tPQAds1ZjXTU126JNSxtldN8bMzXZHBFiShgvnKFiMFnDNXBCrls0iJ7v+RqG9dZuZYJnwmHAqG6hqImd9lMj/AIk+bhYoQBOc36EocMHL2qWrSCxGv0nF3qzuQL20xfOegGn74Mzh01yQwPFWT8uv+/ynSjRkKr6fg== 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=qziZkyiajB8xdy7UgM1E/4gdyo1C7W6rZu8GafFhjkU=; b=bJRoJsIPsStAAQasgBQ+IrVVDv63qKHQHIbenEj+Rsxy+jOyHs5AofChmACfxUVDPM+LvTd/zngTRwRdgwnoaooE9IQ7twTPjEzof2EdXCahckJjGGcKVbOPgIofLYz3XfOaEv1byKneNCplfsGvWje+R8vVn6AI/iiB1SWcSMCvZ+ACTmVJp2RrV2DhyQ7kmJVuKLBfKgoN3Rfe33n7eEFK5Hq0Wyh4nn5NtxnttkyBcYUSUgicxGUiEjJ2kIlMr/KKEG/nkQs4aKLW/XldAPyJbc8gRQaPA19co2K35rMVswUVhij68xqdkqG0xhX3yro9KNH1bKmRHIx+gDZNIQ== 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 GVXPR08MB10761.eurprd08.prod.outlook.com (2603:10a6:150:151::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.71.12; Thu, 28 May 2026 16:30:09 +0000 Received: from AS8PR08MB8659.eurprd08.prod.outlook.com ([fe80::96bf:2de3:5eab:70ae]) by AS8PR08MB8659.eurprd08.prod.outlook.com ([fe80::96bf:2de3:5eab:70ae%7]) with mapi id 15.21.0071.011; Thu, 28 May 2026 16:30:08 +0000 Message-ID: <1767a089-ddbd-4991-9434-1b9ea7492e9b@arm.com> Date: Thu, 28 May 2026 17:30:07 +0100 User-Agent: Mozilla Thunderbird Subject: Re: Prototype of C extension using Python limited API To: Tom Tromey , gdb@sourceware.org Cc: Andrew Burgess References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PR1P264CA0085.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:345::8) To AS8PR08MB8659.eurprd08.prod.outlook.com (2603:10a6:20b:563::10) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB8659:EE_|GVXPR08MB10761:EE_|AMS1EPF00000046:EE_|AS8PR08MB9742:EE_ X-MS-Office365-Filtering-Correlation-Id: daf68c9d-ee78-4f2f-e4bb-08debcd687f8 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|366016|376014|56012099006|18002099003|3023799007|11063799006|22082099003; X-Microsoft-Antispam-Message-Info-Original: pHhlmy/gxb72JMClqwvSkHtA5WNZz06EeKXKOwadbb/WdyT0Xr4a0/cT6lSud/0ho5MICJwfUGdFPpIOKryahDem0iHc9z4YaYA8pYya3xAfCvdJ6qaVtU/rQYG0GRVqdoPDFN7V1qG0YWBpPiUKEyx8z39kL+reILW4dIJNLmPnwwdAaKSr4c5Q+QF7+DMNajp2XrxQ6yCiKVg4/yWh4G/90WP1RpowVct1j9FWvGagttkgGVsLszDUCAA/lZPAXpKJ8xG2631/CwjKulkIvfD2F7zZZUpNfz6HiBpXIx+KusA7Zj1H3eQPpGPEJ3vWT3VuKBx9jDaekJCa6CFT3+zRvFtMH1keuiYfPjBAaKjtM6qPDpfzHlTKmfqpxB/H3lrDTT/sm9dNBDiaqTO4zRfHjU4wiez9ePy89ssgJgqq8l6R/5FYRqEuQo0a77QWt8q6p+lyROvQOgnj7qtIYSEP1yPlGH1MwB8KHgT8uuk5gXA7kWM/1BY6HJrIeMzqL37JeBxeEJxQz4k4BMSWyL5aAsi5bq0gq3/BSqpdBhFrINyQwq1akCCdynw3ZqD+6kmb3oUwmd15UzRoq1uMkbE5/GCLuCsHhUxpMf3eFVd450RKJBJbZQ03Qovwb3COm8GhpQGlTv06aWqX0/Il3g== 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)(1800799024)(366016)(376014)(56012099006)(18002099003)(3023799007)(11063799006)(22082099003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: Nqs5CVeUAgMKTdQUX4G74E/wWExvR3SFwVpPXiYXJsq0Xpxl5fNa2qxrRwVcQ4kfo4jo7EPiIYN8zZtx8SmoheKCskidaT0KcUopnn8taKzst0+fCbuOpE7+tSBTZouBCOez7MmgoqkYFfYnRxQ1IYAYs5qaLi7rf/Bd1enQft9Z5ppzZQRLXQkPy4Y5P4lA7uOotTjmMqFIi1fX+lIrPwVzoat5wlN14CA4eZap7I+I5FEcSRhTRQzz93VR0nJ6WMsy+t6YODzDclTtwxxw7FiDjNkSjc+Wm10O56bPeh+Oyu5NC8XPDTX74WpYQzwIpnm7/P4BN7Kr0uvy0YbwSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR08MB10761 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS1EPF00000046.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: da1d34b0-2a5a-484e-8647-08debcd66218 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|35042699022|1800799024|36860700016|376014|14060799003|56012099006|3023799007|11063799006|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: 5esiuD7aYmmzs36EatVZxOvkrRqoaRrqW5ID/Ky+kr26uClF6rulGzwIsv+wL1lzgWuksA4ciJIbLNqQ3ixROBSQFZQFRykYzc6NVX5eocndR87BhVLPZsvUvUKW//Vt7hIfi1CPpR6/ge4torDnhC3d31+QgduSq6nE6hCiJIXDAtwxoB/+BriM/tKRJTHg/F/H4hdYw013BzdtYFgpld9xGw+SzN1yb7IgasPmrq1AMjgxj2cQG6D2JFn+Q14sBaoAAI0k7yRU3M/acNO23ddgFS/WwHcEXO0wWqFz2fXsQPQBW5IdlKaUWZtz2l2QI4Fjbmx6w/bpWTEgRsO7SG56C9xvH1EoaaDiJwsQshLLHAIjVClK6RJYw03BC/7SMPAnKNXk365USstfgBdGOluqkqhbcfDYhq4Quvh/OJOQvetPGoiVFOBBRivGHpkV7eiKh5r0sQ5RqtfdliAhBUyDLg8nCnkoX48cnvqxTXIwOP7WukuEoT1f4obEOBITqr+R/26LQuY5xLnYCc/+rux8SLqKwICwMIk22+5QOM/yJr+7lCQOoR/314vwKMMQrscn5HdYTFgijVV5yE69mwTZFO9M8dgknVyIRKCXnCfUxT1N5FIGaKPqnS4v6mbRefn3+LzTN8Xnw9OSSchGDGNDa8UDuvel/7VvZAWPt2UsIOWEJlhCYHuKClWK3rQP 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)(82310400026)(35042699022)(1800799024)(36860700016)(376014)(14060799003)(56012099006)(3023799007)(11063799006)(18002099003)(22082099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KUmNEckWHGSUZsyoGiRoPITRmuhDYVZE8Z+qsWp72w6JCMBqoJY5uez1R7EqmvJuUtn/hpKrYfJKQOHAAyvUDHza+Ky2jNeRwclI0w0tgKU3qPreMYTyta9dIEVA/+fiXEJohjORBVViuQ66cJMSTJBPuvw/wHXZj5GwMYNB3xUv53KuyjpsY1uOee8NFs7Gn5ehHH3uKUNs2RRH0i97WnX5n0UEKFjhsuZFgRDH7O7yeukJ0coPkswb8aYKv7PXnGQhxw1IYql/sjacIL3jPsgz9SKARdFQpZeobihjJpCfVag6heR70X9hd4d91CUuM3/W/bYMWNSHcS+glWUm4n0pHVB/QYmaHExazbKhyAHh3PSohLHkfFr8doj35C3sSbjsKZzuSDDkpYazf2+TqUTisouypv4JYOD38xVfJ6dvPovQrft/ad1l7USHMDLS X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2026 16:31:12.2508 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: daf68c9d-ee78-4f2f-e4bb-08debcd687f8 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: AMS1EPF00000046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9742 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 28/05/2026 17:25, 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 Please ignore this email. This is a duplicate of https://inbox.sourceware.org/gdb/21479c1d-3a9a-4ae2-bc1a-5dc19871f275@arm.com/