From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yd1rNhVbHWpHZi0AWB0awg (envelope-from ) for ; Mon, 01 Jun 2026 06:12:37 -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=R/9u0I8x; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id CA24A1E062; Mon, 01 Jun 2026 06:12:37 -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 3070D1E062 for ; Mon, 01 Jun 2026 06:12:37 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3875A4BA2E19 for ; Mon, 1 Jun 2026 10:12:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3875A4BA2E19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1780308756; bh=VN7yPIUT3CMijuEdZiRBP3yLMhag7zpPeH92lbYEkE4=; 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=R/9u0I8x31Qowf7X2qmERqrEgrTqIIVsg8uGNuywfobcefNrcbjG2yanm8vpQ80lQ AM55HKX0zRhEn+u2ctT7q3eM13BSE4PFC+7ZgvKjDcC1q2FwvnJN5O0Za6zvLpdrwg UvuUj/otkgG1z4w4Ijy53asny0fQ0Mw+7+ADacAg= Received: from OSPPR02CU001.outbound.protection.outlook.com (mail-norwayeastazon11013039.outbound.protection.outlook.com [40.107.159.39]) by sourceware.org (Postfix) with ESMTPS id E1E724BA540B for ; Mon, 1 Jun 2026 10:11:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E1E724BA540B ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E1E724BA540B ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1780308717; cv=pass; b=nz/1+uobnoLPNbE0J8vEzeiinmARvfUN6NfF94z4haoDcJlQBjfpmxV+Jf+U8GQm0O/uUxgUEunJbeOQTdAFvPh99lS+BqEdrBsomY65Bofzok1XMqyDTaimDgwhB+PS0S0bYNRbWvZD7f36glnSxEiDBNHnP5Gf/Vhx+zI52+k= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1780308717; c=relaxed/simple; bh=W/r8tfkbNi+ujFETVLC0W8ytIakYRg3OEOM2VdNd73o=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=AYGj9rhV3UidHlKkaRVU9DInCgNkNDoQY9xBBcTH2A/4qXfkVtTnaWFJEZzLA6L6kCll6pj4n14bedbrm7FiPTzGoxnsWdNLZmYNYp3ZlJCncwLRxn1c8DeaEObU09j88SQckb/gg5Db8JpeMskwBdFzgnlBzc1ApuBWg2rUI7c= 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=atyq1qoD; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=atyq1qoD DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1E724BA540B ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=st3kchsgcU4heTWl+7VeKk3fCf2rQBW4AOsWppDE/SMOl+tZ1lQRRLYhl4xXwOQYjzs87B6z/0Pn+BkFUsgNYfk55zSiglG5J4woLJrM5qudXvhNsRInPbiw6JTjJlEfr6b6IOS33dRRAleaszJu5lT56FJ5J7zKvcGP6rQZJwMnBCyMtH7wZou8XHqJSucuO4AEqY75P2MeGnhczuAbX7Z8y4aTMTxXD+tPeXUMVT7Ee7boI1bZBxOb5KmIOSXo18tKQbEBJiq85zvWXII8/pVl9vihe46oaI1PKzIUBNRSw/xJZ6U03UQdnWFjyQ1yMYBTEMM1bI55FA9gr5p7aw== 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=VN7yPIUT3CMijuEdZiRBP3yLMhag7zpPeH92lbYEkE4=; b=GmIyjzAt9GAc2DHvYmhL2GE2DlohmWOuZ4yCr3X0ZZjYDe2d/YMZLXbnNX1cFYTYc0ncnR3XFZfZ5lzcZ+7hTbXgGJwG84nKW2RxM7VxJMVOt70V9jBCSq3OFF3ccF3WEEET8HUFfoTbXb8ja/YveCaXH3CTa9wDd1oygwwhaeUsSMQUQ/QQWW0iPS2gyS7Z+pzWfPT7PHV80SaZZJjC0oj/8o6LtG8QLcBUqRWsHWJ+UL+E8jBdUhxi3woFJl1uD3xM0Zn5HozdW7vq+k1m/OKcCyi0c/dUKRAHxh/TMjZ9FZY5bsmjZof5niAKQyoFntRl/+WfKrCNjXFVf4ZUHA== 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 AS4P251CA0003.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d2::9) by AM9PR08MB6193.eurprd08.prod.outlook.com (2603:10a6:20b:282::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.71.17; Mon, 1 Jun 2026 10:11:42 +0000 Received: from AMS0EPF00000193.eurprd05.prod.outlook.com (2603:10a6:20b:5d2:cafe::ab) by AS4P251CA0003.outlook.office365.com (2603:10a6:20b:5d2::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.71.17 via Frontend Transport; Mon, 1 Jun 2026 10:11: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 AMS0EPF00000193.mail.protection.outlook.com (10.167.16.212) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.92.5 via Frontend Transport; Mon, 1 Jun 2026 10:11:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u6Ls6tBQggUkMKk2WEIBvk+uKKCx1W4F+fyflfSePrWgdLP3O3Ebq2kHIoRLyd2SUQezQLJOB0VowM0EquaG3QKt/a2uWofTW2HhOjNWa/YzvQbe4mdoCPAS431TctWC6keSzgFcBa8e7o77RBvfc/EWhon8AeeuI1PrzbFZfb2bZfARQLf6aqCpHtPKN22pbcuPRTzbWKQT7/laWLG8lJMYP7m6ynyRUB7oDrxXGxaT7rvw0P296IZC50spjycs4NxqLLp8JuJKgsEGJUhJ78LA9aYHKZ1AR++unKH0eUx8URR2UvjxPf5Tvliy1Xr+xh67zcOAfGqrfwT3Ov+98A== 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=VN7yPIUT3CMijuEdZiRBP3yLMhag7zpPeH92lbYEkE4=; b=C+fhjKM3iKT1Sw1fGACxW3SY7XE8tPe0n4AZoVXdVJr+nb9oo3G9hTHIHAWThdP6PoxFK1E6pZatHmITqaFszHCtcNDI+em8BaI6ys7JL7zSz/t8Efc94Swjf8wUcS/HELKDDNoDtHryBT8lW5pvwedzcH1blyKEiitiaQ1AVHmXTa6J24I+YdmNnVLjrC3UVYuOuLhQ8buDfjdbIjiplwaUrYbuQBpNBBNZx2EWxBZWMJY4hbxq+RlRe+Yb0fEq0pHC2i+qyBEfiR8vo3/unPKtsD4TrddXPyzqyq6LMrfViE98oqwM5thfayng/BePzj4sWV+yDHbNTPWdjFqBdg== 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 DU0PR08MB8663.eurprd08.prod.outlook.com (2603:10a6:10:401::6) by AS8PR08MB6327.eurprd08.prod.outlook.com (2603:10a6:20b:31a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.71.16; Mon, 1 Jun 2026 10:10:37 +0000 Received: from DU0PR08MB8663.eurprd08.prod.outlook.com ([fe80::f957:cec9:ec8d:7968]) by DU0PR08MB8663.eurprd08.prod.outlook.com ([fe80::f957:cec9:ec8d:7968%2]) with mapi id 15.21.0071.015; Mon, 1 Jun 2026 10:10:37 +0000 Message-ID: Date: Mon, 1 Jun 2026 11:10:36 +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 References: <21479c1d-3a9a-4ae2-bc1a-5dc19871f275@arm.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO6P123CA0053.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:310::18) To DU0PR08MB8663.eurprd08.prod.outlook.com (2603:10a6:10:401::6) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DU0PR08MB8663:EE_|AS8PR08MB6327:EE_|AMS0EPF00000193:EE_|AM9PR08MB6193:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b1c82ec-a786-427b-26e7-08debfc62d69 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|366016|376014|1800799024|3023799007|18002099003|22082099003|56012099006|4143699003|11063799006; X-Microsoft-Antispam-Message-Info-Original: idZjhY0CmZZIouqK5HMpS7HdIqhmknYvHwuDzUaJ67BJ6M1Y8BOcVlNTh10n3DwlmavP3K01q5YVk8BbSZXKip8+dLv/I+stXjfzIVIWtmLhj4/VwxKGqkIbI/xmh0gPs+gEX5KvY6DBTsPF1rnlXd4nEr2fNcEecUUvVoj7uW3xBnRFXvu60uV7zbumNcXbZT98GUdgSZuZNl2bLNwbwrMFT8KmaxFVqzfmHeTDjmw87qz3UDCKHmqYtGIbrArh2NnlJF/Yqz8ccyDG7gHw1cUYe7uKuXHCKjGf0lChF+ufeLsoV2YwHzD4nQYqCrbTKH0UbF7rEEj+EI2sPMk4QkyZxw1CMKEeCdriPKdfbkMvlk0iqHLEbOC/kjDk6nW0wqgnYtGRO+VHFbdx1IOv/3+/SmeANgerhmPW+RU9Z+ij82Fap3voQ+5jHZ+2HYlS3crQECDa6g98UzI53AXgHbMXhVhd5O03XYm9dKtJJ+fIzG0INptCa4lnE8RuKvuQ+eeCz6Es0LvgNt65PV5ZcL46kqDDZO3070OMuY4dKpvDFyAJxitXCekfxjN3DZn+wg882bZnw6QzsQEQsKMoW+UsOqtyULPLvzbpO3EfclibEHMpZKI9J+9/FAbpJ7Cv2rHbjA4lLWnn7u6EZ65jj56nMefErpsNu2J+Hxx7Wxdwq6rmxP4DkJZRVTk1W/bI X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR08MB8663.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(3023799007)(18002099003)(22082099003)(56012099006)(4143699003)(11063799006); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: BqI+ifgF+hK2eJ7gXNbglHCykTEhKxL6xvvnBnHxAshf1SUrQSfVLK+yyxJFVrnDXnk7M3oP49KsczTTZTKFMo+VC5QmpQ5Z/8jJVLy9y5EYPyBq6rTyjkRPnPnMy/OS7G4E/a7iiWvbn/ASMBfpM7XW/5NHhCt3tZofpcTk+7154XYFvCLlfryWCaGJef2jNTgsvWY0meQ3S1FvuHLvWziKRRpLA9vh3t1cxhOTdfJsUGtayWjiheheEl1ukeBHrl++IUqlHtErPzHZksYdO+VzCNuDdWs7uBoUlR1C0fyLT0usjg3156s+kGg2/d1/xh2osv5KPQT6JKwUyN6dgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6327 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF00000193.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 6632b8c5-d491-48b7-7a8f-08debfc606b4 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|35042699022|36860700016|82310400026|14060799003|1800799024|56012099006|4143699003|3023799007|11063799006|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: WPnPGmrTawaTZlz3ZRin8ZzeUP7MwcLy1Gd2/tCULoaGSbquMVVYpuMaPbrC13aLgkMkCFXlk9Gpe8Zs9vQp+lPEzk7vWhcol4Hj5Q+lx/gqf2mJUZDQnJJ+6COMi/XCVEj0nPW7y3OkqaxHVcJw5Pl6bmY3kP7sGkcvi6TtxmjwRJlfHAMX1EWOfS87+20glpykdKYX8a6DZZIkaBJdSFQX1REU6e1rekPmkvkT8auJjnUExmEw1t3/vci5OvUHUXXMyKEBfY9D+NkeCVslzv1XmYmwOzb+rNmurC1xwo38v9Y62k7KI1+fZT1uuAs6NOfvN2tQVYT+4AubEeHwTonAJPeByngkdTOUgKrABzMp7b7w1kNXjRMR7VT16E++7L3S7N2E2niNmrwr0S0TDpUzRwsyMixMkX4g+weiNdQ5JoapdSZzdGqc2TAj5/YruwF3/To7w5uShCGhTQF8GN+nGVW3x8ijnWU26h5+Ie8GyKWuBEHtE8GIUxzB72ZnwC0LreJe7ZKUNkklgN8Or4XDWrnqO1QlQn2RslFr4TspVXDrPzdAWNVrtCB414uF7AhsiLP0e/4PrHwW/olg4MGZsPyYigMWCV05zP5uh1n455HGQ6ZW7qW6A+VVhl179KOT2zBfCF2c+MFqiDvrDbk7UYNwP+ZiTcGKxDquGqxshDS50s/65cm76oUCZEFtrogfgE9/IhNJ5kJWik/ILBCA2ZIuManZTj89rz7DfMU= 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)(376014)(35042699022)(36860700016)(82310400026)(14060799003)(1800799024)(56012099006)(4143699003)(3023799007)(11063799006)(18002099003)(22082099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0OBJ6ebVDpFXZbg8CSb2zdXtTKdffjJj23xW5U6zxaudIZjZBu/yKA0FxAFgqxDyD3qKrR9jaX5I8WoPHKi4U3MIVTZs48VJt8IrEiudJ8tYxUrq2IJaUs1hsgdW2go+bQE72EC7Pt8vVjgFyiu+eV0hJFIrxM+Qyu8d0F84OzL2eLhn1o7CdT+HTPtLTb2kSapKhuGeaMR0CuiYgCqkfsJX3ldE5NrUsuaZEqHinDWJsDaiin826UvBU4g1PcIJlanz8ub+DCdZcFPvr+A22efIVZ8OH/kokFWdg+7teKrQNqJFYyLfEbywKJ9i83IMw771NJJiEsyqCWOaHtIGGSx1JCcIuTg+rDrV22VJ5ynIK5nBv30dV1BnyDia/FXzLj10shL2c7N5piyN31Jt/rszmlLZla2qKBysqsXat1JAN1voPEOH0mI5ZWhLQqwz X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2026 10:11:41.8518 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b1c82ec-a786-427b-26e7-08debfc62d69 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: AMS0EPF00000193.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6193 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:31, 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 > > With the archive, hopefully not inlined. Hi Tom, Any chance for you to have a look at this in the next two weeks ? Matthieu