From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Wc2gEaDf8GlZTgEAWB0awg (envelope-from ) for ; Tue, 28 Apr 2026 12:26:08 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WsZUhJe/; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WsZUhJe/; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4296B1E0BA; Tue, 28 Apr 2026 12:26:08 -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_MSPIKE_H2,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 284D81E067 for ; Tue, 28 Apr 2026 12:26:07 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id C3A744BB8F61 for ; Tue, 28 Apr 2026 16:26:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3A744BB8F61 Authentication-Results: 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=WsZUhJe/; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WsZUhJe/ Received: from MRWPR03CU001.outbound.protection.outlook.com (mail-francesouthazon11011028.outbound.protection.outlook.com [40.107.130.28]) by sourceware.org (Postfix) with ESMTPS id 477E74BB8F4B for ; Tue, 28 Apr 2026 16:25:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 477E74BB8F4B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 477E74BB8F4B Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.130.28 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1777393538; cv=pass; b=bU4l8HOiuwNTbnTZVCDlpMEJgw+ksW0sXRZoSDMjmkVqB/13OiRmuSqDpLZn9FpD1eKscLCgJUv3rt3e9CpOasvifSoVUVYFQhHoDU3sPKF3+eYTl3cPACHpQyFPAIRRMpjkrT8dOSoe6VCmq6UxZGJrSqnYNT51noQaXpyIfaM= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1777393538; c=relaxed/simple; bh=VZT1ioAfgDxYWjRgDeSNmMheqjRqgZctF2FBxAFfPsk=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=NQ2/ks5NKwrVauRQE2uVtkaImRd+bd2rqE+Q1uJA9C66ul/XDLmlgnCJymmzZR57htoucnJi4EkK4dWM1MYcQzfnbS6jnvfb6yZya3lrl0aldf0JNE3p4pJIsfU+A/apJKtsgsSQqZQrbiYctTYsHCYVNl8zWZPG8iCHT8MdB3M= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 477E74BB8F4B ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=WVS6Cbbos/JNZyfXRTMaxon9pAzTru30FqkehUX7qkaCOsuyxurLPvjSxbFeJhqnj2xHzCdml8wPjQXAG/njZDIKUnfvRGmhw/QX+5T0eLqTCracJSy1+xtB60xUN3qQf76grL9RFsjiCpJVa/AxsBH257QDShqdUXMw02/eSt2zLiVEGsFIGWjl8BEsbbhUm8NnEJ2oiClpFdKQW88GvffBgGRz0stuHbB4u0X31GsCbNPrazXToCEJpfScpvylK3CijOCN0MBkC8YhoKwH4Wym2UxB9fl6aXjnIM3Xczulz/8fjUaUzNchmGgRpHZHYJ7TUvOCz4oQcu98uf3rKA== 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=3rFk7eu2neEF9NOf92DAuTF6AmcA+WbbMEcmCVLH5Y8=; b=vAY+y5R/1A/N02kjqPNpglOrfKppnmkEofZVHPTx6pVsNI44ghDrPphFt3uEfuPje2AzT+W8HOhjAOwtqSw6zjrGqBoCx8xDK1nOeEMZgxJchAGsAK04oqEcOXN7gix9969iz3nl1jP+4O0ZoRsGbGGror/p2Krvak3dRoz3Gtu5hgRTCqJi3WCg8RmYlsFTtpiGIXgQkZJ5tQkBE9JyaM5dkUUi+8wykKKIeNQxRWf262e+L90d62KjtFyQBTwgX7BPzue1m+uTk56nRa9+7UhmY7zyZPFnE5L/ovi752xAY1CEArUyvNqbc8V8YxVyBmqn8HnXHhxv56gI8qT54A== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=sourceware.org 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] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3rFk7eu2neEF9NOf92DAuTF6AmcA+WbbMEcmCVLH5Y8=; b=WsZUhJe/gKvQvBGqnpiIfHLYDmN1/J0ryPrudjB6FdXh8zhfcGshPfjOcT74KRHsFmbkukKS2LtNrz+w4OuDa25qYRJ26MQxGbZm0iauM7SM0y3NejQovL2EABRIVr/7BaCNcJzj8ENNwcqWs7/rLnu6imz/OXhaEeAdvUA7Bn8= Received: from AM8P251CA0014.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:21b::19) by GV1PR08MB8331.eurprd08.prod.outlook.com (2603:10a6:150:86::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.26; Tue, 28 Apr 2026 16:25:28 +0000 Received: from AM3PEPF0000A79C.eurprd04.prod.outlook.com (2603:10a6:20b:21b:cafe::fe) by AM8P251CA0014.outlook.office365.com (2603:10a6:20b:21b::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.26 via Frontend Transport; Tue, 28 Apr 2026 16:25:27 +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 AM3PEPF0000A79C.mail.protection.outlook.com (10.167.16.107) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.18 via Frontend Transport; Tue, 28 Apr 2026 16:25:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yvWJ/tqvpLWecNwlJtpzTCBvMi8cOTJsz6/qs6ywwu8yipVq45krr8aG6xICAg2OTx/jpTeEuuQnD1l4LDug7jnGTz55QW1jrTxU/Fj6jlsIEBB28zpbCc/FrdVpeOEDiv5NPvRZxUt0BMfn9I2P6waTKK9mqbxUqFLVg27VRL4rOPOG05to9WHlLSFqSa8+h1hUwO9gZBei7A+E6VTKaehDixd7AmwGuvGnsPeA437nHcbJhrKLYgZAaox0eHFVj8VMSii45mz6QrlrnVY4uTi3RsJHDvVLAEuzUS1r0rUEYpyGMgj+TG54KS27cLg5DVKX7ZEIt0g3QqW9uUGZvw== 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=3rFk7eu2neEF9NOf92DAuTF6AmcA+WbbMEcmCVLH5Y8=; b=KQO2jDJYxZ+LBCfa3yQaHlAe89qHSsLPWV9ZnYoFg7uYN3CoRT0y2mOXAsxqFVIKFPbOgYfZNTsvtBbOwvl2617BRgRU3NUM2n0Sg4skTqsmINvzvGdko6CIezuwBlZRA2v0EaBnjDliBHCpHmimukakUeKWHx3OhEZ2M9w/gcnuoTEzD2a2Beq2B9LHTPzJ3BTxYjTGzYEJHPURCUdcZvV0YiQgTw5R9Hy6W3FUbyjvmnHI8WwJRodyvFN1BIleYe7srScnVGLiwXbLqh5SbcD9B8V6FeafbdWIHwpQ9mSI9VuLwT8H7oLp3O0T7pjuebzppLsTaHLMAeT6Mf8/Gw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3rFk7eu2neEF9NOf92DAuTF6AmcA+WbbMEcmCVLH5Y8=; b=WsZUhJe/gKvQvBGqnpiIfHLYDmN1/J0ryPrudjB6FdXh8zhfcGshPfjOcT74KRHsFmbkukKS2LtNrz+w4OuDa25qYRJ26MQxGbZm0iauM7SM0y3NejQovL2EABRIVr/7BaCNcJzj8ENNwcqWs7/rLnu6imz/OXhaEeAdvUA7Bn8= Received: from PA7P264CA0323.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:395::11) by DB9PR08MB8433.eurprd08.prod.outlook.com (2603:10a6:10:3d7::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.26; Tue, 28 Apr 2026 16:24:22 +0000 Received: from AM4PEPF00025F98.EURPRD83.prod.outlook.com (2603:10a6:102:395:cafe::23) by PA7P264CA0323.outlook.office365.com (2603:10a6:102:395::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.26 via Frontend Transport; Tue, 28 Apr 2026 16:24:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (172.205.89.229) by AM4PEPF00025F98.mail.protection.outlook.com (10.167.16.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9891.0 via Frontend Transport; Tue, 28 Apr 2026 16:24:22 +0000 Received: from AZ-NEU-EX04.Arm.com (10.240.25.138) by AZ-NEU-EX04.Arm.com (10.240.25.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 28 Apr 2026 16:24:21 +0000 Received: from PF4S4363.arm.com (10.57.21.183) by mail.arm.com (10.240.25.138) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Tue, 28 Apr 2026 16:24:21 +0000 From: Matthieu Longo To: , Tom Tromey CC: Matthieu Longo Subject: [PATCH v2 0/4] gdb/python: more fixes again for Python limited C API support Date: Tue, 28 Apr 2026 17:24:12 +0100 Message-ID: <20260428162416.511367-1-matthieu.longo@arm.com> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM4PEPF00025F98:EE_|DB9PR08MB8433:EE_|AM3PEPF0000A79C:EE_|GV1PR08MB8331:EE_ X-MS-Office365-Filtering-Correlation-Id: 96e26de0-66a2-4b2d-b74e-08dea542c16e 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|36860700016|82310400026|376014|56012099003|18002099003|13003099007; X-Microsoft-Antispam-Message-Info-Original: 4Az/Oizq8SFWb5piBiMgiumcpOHIKxvZM1QOySMhXL4Y0ZX8eqC3yvmQyQhLnfQzQeEYkWS8g0oplV5r4PhGIzXKxSSV7v4Sc7MptB5GwFHtDbiypbY+4/xogqKp8F92+8PA5lXMcPh8uPIsOy7GmG1D0y4py8n1rfVXj1RTFyWXeMu96jB1+DrvTZmGP7MV79mnApXGPTc5pv04gnb++bl2us5qfa7PF2UcYSDPajaFvVZpdMHe+isIIGgRngygb0b14B83Wud+ZTcJreII+oQw6gO96ogOGrcTCXRdMzGURxR+Im7VuLafQLO2a3I++YD51iCWaNrzOvSJJ8mugQkmqA/Gj7zzZ2Sn7wAxCrxR3lrOl7wboq1nSEcmCBcdyss+Bsg6HkdR3yrE2XSMhSvys72nkw0HgKCi+UrpE4h5cWDl/ctTtU1D9Za0/DZfiaHu7ogUTG2Hb4xk2vls8AQim4g2LdmPqMu5pFYTP41ZeDNNzXIklXzN7D50O0O2U//p/ThyABXk0Cdp2ZOuic6DwDKMcTGIQL09AKZzMerl0cZJkqOMyFfTxfk9DHz3ynkF7xNb9kAoxVg6ydZ1flnInir+px2e1hkluHJpL7seKG7HES2hyxm5Uqsm10SVam1YH6BNCboR0JZqw9Quv8pcZfW/wvvDSZG5LvWLm/B5yb/E77yrjkSYqSpS995MeXwmwGt197XOhnbbEEAPAKRs+ZLDGRXleaNU2oCY4OIccYDs07FoDlQB9Ma6zKY8 X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(36860700016)(82310400026)(376014)(56012099003)(18002099003)(13003099007); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: qzQWrFRR/SCU7LGY00O094n736yLle+Y3v9x6v3uE91AKoqkunwTkxUj4dYZ4QzR8/oSb56Wc+Qw98snXvn5xCuwJxRyOMNYX7MpBjerCpSgF91GbK+5XDrEJ9o7bsKGxXLPincQ6+0UCOQHJQHuK12hn+3fkfZ7D2XzhB6Fra695tELE+ttDOMdg8SOpWUgWnjh6c5YPJkpxUhGJZYtfERofgT34vS2OmyKgHkFbVtQQd2YoC6+NUuK6x4lnFARgFU5ABuZ1WBZIECbJ5JtcrWj4fTXcA0hfAAeQcyObeVELvEffbOsQn7ZAXD36x3zNDhi4npG3H6zdmcO2IesmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8433 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A79C.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4960be8a-954e-4d75-e52b-08dea5429b52 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|35042699022|376014|14060799003|36860700016|13003099007|18002099003|56012099003; X-Microsoft-Antispam-Message-Info: M+/CXrPJBf2nxGZVm3fxRcQ0ho/OwsbxFOwcQG06vbcQImEuTcUSxutBEvt7xgiDfVr4ZZ3zwlD1U/Ms4PxhET8eF5PEUcxJKnapILVbPlPey+i8Mb19QN+7viKx5+923L3+Lf8sYCGyX+R/mHx7UURQd8yGVHRwRPJ8EXzsdbt7+BRwMI5jve+Ed3rZdl5sMV6JB+Bhu/gcZnXaewsWz071pTxpzE+z7G4GJIcxNafi37z1+g//tOhBrxFRMdJc5AI+/QLx6+U9MdtH78jq4K2KpSviWI4a79pT64urFO9dLhSbcP3ET+VXvmr8nks0LhZ6bybQbhaAAGpSFlm/8ZEs0AEWASwjH78CvlyyRuJMo1s3t1qcMqwCbw6wY532Wcrv1sDnebK6mkUpDTM66UdSPg8nSndXhEaCZ6xt0g+zPh97fnPVMYR3hTmrFHO6WHuDIVtlkTh3RchHXnL8w7Yj7EyfwWpKehnWjwZILbRoBrbWtgGtW/CA5t5xoAktt1VEdsxzlRyDlePd5xdY0cdeoA/FTmdXgf3xk+TbSCwur8f3m598fIeZXVa8UwzghITw4hjiLVDog7M0bfUugtFISnG98z+JYxoj6Bvk/L+FJ3Is1nfqw7BYxmC+7LG/Ppg2bTx1Xqj1Uq7L399RJyHrfYyvzjv6QLNp0TDQqf6xf3Jg4y/QfR5uj6icJYyIHgBcwiUGO6yiFr4xnPKoaqOFQHfH93E+joRx93GF7xhSgsu8O6x2kTHFV95WsFjof+3BzM0GxsE0YAZ0RwfJ3fe9w0ouCglkLEWwGP3mnJA= 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)(1800799024)(35042699022)(376014)(14060799003)(36860700016)(13003099007)(18002099003)(56012099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wO9ml9pWl5WgDGQa7Pt2dGFrb8zJJz+WmaevXtRYbRhbT+g5065fgg6rxxUyHXHEecYRWoECY4k4TguW+ee+anjvrWOmC1fyYwT97m3bN1vRQWpacuF4oDFVp02+NJOrENXsuOZakQHGQM9GwvV0nsMAHRrARf1zMwhVXTc0o5N/h1ue6m9VPOWGuHT5XGYY87+haMRE4jQIQmI8NjZ16Wrh8K0J+NT6tiYi/5526tMEM9tZXedrnDbzQNMG4e24ThD9yRK/D3HrAiNdH5w5qN8WyeaETL4WwyDHQBrYahUVL5CBh8RhL1yjtWYJzY1WTp2WsTAhRY3eJ5LeAHINkxLWv3EnFBTvrSv8dMstlMe3mI/X/Y7M2HUZNl+PFIA7SwXhCfUz5r1EB8zUB1lZMahr1gKp12GwDSoKRA/G4YVrjs9FeVQdrMAXO7SQ4BfU X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2026 16:25:26.4336 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96e26de0-66a2-4b2d-b74e-08dea542c16e 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: AM3PEPF0000A79C.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8331 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 This patch series fixes more issues encountered while enabling the Python limited C API in GDB. This is probably the last relatively-small patch series before the Python C extension types migration to the limited API. Patch 1 reuses a previous patch publised by Tom Tromey [1], with additional modifications that are required for its usage in the Python C extension types migration. Patch 2 adapts the signature of eval_python_command() to return both the exit code and the result. Patch 3 migrates Python initialization to use the new config API (PEP 741) introduced by Python 3.14. Old code is preserved for older versions of Python. Patch 4 proposes a workaround for the missing symbols not yet part of the limited API. Thanks to it, I was able to finish the compilation of GDB using the limited C API and run all the Python tests successfully. All changes were tested by building GDB against the unlimited API of Python 3.10, 3.11, 3.12, 3.13 and 3.14, and the limited API of Python 3.14 (no build regression), and no regressions were observed in the testsuite. Diff against v1 (https://inbox.sourceware.org/gdb-patches/20260409105155.1416274-1-matthieu.longo@arm.com/): - eval_python_command: return pointer to result of evaluation. - gdbpy_borrowed_ref and ref_ptr: add an implicit cast to bool. - gdb_PyInitializer: replace throw_error() by error(). - init_done: use exception_print() to print the exception. Regards, Matthieu [1]: https://inbox.sourceware.org/gdb-patches/20260222200759.1587070-2-tom@tromey.com/ Matthieu Longo (3): gdb/python: eval_python_command returns result of the evaluation gdb/python: migrate Python initialization to use the new config API (PEP 741) gdb/python: work around missing symbols not yet part of Python limited API Tom Tromey (1): gdb/python: add gdbpy_borrowed_ref gdb/python/py-gdb-readline.c | 2 +- gdb/python/py-ref.h | 115 ++++++++++++++ gdb/python/python-internal.h | 7 +- gdb/python/python-limited-api-missing.h | 62 ++++++++ gdb/python/python.c | 197 +++++++++++++++++++----- gdb/varobj.c | 11 +- gdbsupport/gdb_ref_ptr.h | 5 + 7 files changed, 346 insertions(+), 53 deletions(-) create mode 100644 gdb/python/python-limited-api-missing.h -- 2.54.0