From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8V+SGJ5+7mim/zEAWB0awg (envelope-from ) for ; Tue, 14 Oct 2025 12:47:26 -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=cgrEwcyr; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=cgrEwcyr; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5611D1E0B6; Tue, 14 Oct 2025 12:47:26 -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 server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 C2FDE1E047 for ; Tue, 14 Oct 2025 12:47:25 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 648433857023 for ; Tue, 14 Oct 2025 16:47:25 +0000 (GMT) Received: from GVXPR05CU001.outbound.protection.outlook.com (mail-swedencentralazon11013025.outbound.protection.outlook.com [52.101.83.25]) by sourceware.org (Postfix) with ESMTPS id 2C896385842C for ; Tue, 14 Oct 2025 16:46:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C896385842C 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 2C896385842C Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=52.101.83.25 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1760460370; cv=pass; b=L4HIr7HAUtyytfPumpHoPkTW/jMpTJofa32AKkWWYIMfFJXI5ic2yt6HrOVafiEi/Nh2XSXtbTc2lwMDFUVjfw/GjSBlwP/DNVRW2DqodGzkGoepS/f5XM033buN2AmVWZ6KZFBjk5Di4JLqMt/h1B1vTxe5XIUZPizMJAY5+y8= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1760460370; c=relaxed/simple; bh=7V7JSRbC+fLFz0QiuigSo0RGXwpeyIPrGllEwWHcYJI=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=FIpJehCInvY4By2I0ZfSe899EBCBSqYmqfhGSKROyu3KNJLQqDrDAKJgiRzN/Sungr6eKKloQfaLNEAc/DsWKWkaidHLTxMhNggQcjEvx4lZXOclG0MAU4Y5KezZY1DrtdxDPBcT6dowZX45a7OKt/kjhlOAAsQUBdM21UA7jPQ= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=EvsL6tmHp4nnZ2fzKq7uW6aJLPQ5kDMXy+gQ3lgzG2IgSCLLdu236zkyaOFHvYQBtgvn5wVsCIy0KYcEYXN1N+5A7t5tw/7glJmbcAD/9IVBgJTUKR7FNjJVNbBLllwoWC7/Jl3v57gneJhJ9xfbBpA7VdFRZpUaAEGTyZRhoVLPtMK4+gEpKchFcnLeiz9TOJAI78XoEDlJd8FlSGUo9d70CQa5kgYN1Wd+bLZ1pdSvpZMWL95P80hDcaQHnwWuKGYs0mHnQTjox88s1jZBii1j5pLZUzKdvNEaiAWcDoj2EnOXPP1tAzExECKtr+sftA6KHNNSb5hFqbgLMK1nbQ== 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=H0EkD+c+H30J4BJZE30/FVSkFiRe3C/Ys97IpT30Rwo=; b=FxKWd1JptOpsS8OT++q49x/Q7x47cAju3OY8fHQ4TzuIM6aWppgMjmn/aux/uWaLkiWoryNVmTAQcXCvhapB0mh1J+8O0QQ02GrM8e3dQexQnY4w+8XrM6WSz5qs8C7J0hai9lfUmcsBxm4Whquiqtz6pEUtvKMdJRleTjaPM4QivXwK0sEcD9cRf5kj5IFOzPhEyUc8GlxudiWoO7dflCezl18qTvwkbe0LUxv+BXJ9iy680gr9d9b3XP4h8F9lk/AyT8cJh316vxDTS4Raqkm996srxpjWXZiwmQSDW+kWB25leg7fnxVUnYp4KqQkVL5lg8GFXJg27shWgVKKMQ== 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=H0EkD+c+H30J4BJZE30/FVSkFiRe3C/Ys97IpT30Rwo=; b=cgrEwcyrDzDjCUmyEjupiKYa0r0k019ogS2w4ILuJDdxwvebC7Hkn5ujOqU7Eiu1lwwRYDyIT0mMpwes2dW/VyF7WbAYbIolJ0Z5PzEKuRt2dBC7tVNo9+1Zsjo3Zi+riXQIp6ZPLtNvadIC7M7zwvgoiTR1eMLEzmFb+wBD6YA= Received: from DUZPR01CA0101.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bb::22) by AS4PR08MB8189.eurprd08.prod.outlook.com (2603:10a6:20b:58c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9203.12; Tue, 14 Oct 2025 16:45:55 +0000 Received: from DU2PEPF00028CFC.eurprd03.prod.outlook.com (2603:10a6:10:4bb:cafe::52) by DUZPR01CA0101.outlook.office365.com (2603:10a6:10:4bb::22) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9228.10 via Frontend Transport; Tue, 14 Oct 2025 16:46:28 +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 DU2PEPF00028CFC.mail.protection.outlook.com (10.167.242.180) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9228.7 via Frontend Transport; Tue, 14 Oct 2025 16:45:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZxAmWAgzPkoIk4JiVPJkZfJi0Ng9mEiGS9VmOD1gPDQk6jbh3wBq8wJ+g6Qw3V2lT8ZTxfwo5aWRQetzt2gcLDtr/g6JDsQtHqnPXFPXlumT5Q0i/Blpw7zk1BhKlazXxtq4s74mcmVi0q6dR/zs0tpPLIAA/GM7PEnloT9yTIsrzNa9UkOdZY3VtMPz646XsVJdlTlf2185lGvxmSGeVxVRJeKAI2Ki0AWJxqWkqgCIu3mJhQH7MtBXkGZR8OfGQEFDnVe6fLui/nmulE8wLhVE1kYlLzdcdivGjdUqcex6dFjveJgd3J47BzmEZVb/6oDuS6shPuPRKhV1hpnyZw== 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=H0EkD+c+H30J4BJZE30/FVSkFiRe3C/Ys97IpT30Rwo=; b=oIUzuIsLr0zScpmSFNk8ZyZlYh6zqDAmN1fxbA3ajuQrI0KhaoItcw1hEfYrEWfp/KDVOPZof4qTX70OFs85ivOi0DKj/N03kO7s5jYWpgiEer3Zth5k22tPUJTIAz33fZe4xH/WU8cvDtAY5eGNUunqU6WevYz1g/tXsPqutl5LOcPoP+C3wi9iL6boXIWrnaEWIls4Wfx8r//UBQPA8Y0Z5qAlVCRXSC+ixeLzc23pMyWAFBxz1OBdM0EAJ1X0eLtqHz+1uKCo8vy6vXF5WIpj2uk+CK7ASfuYEbQ7B7BLtakBuTJx0H/fHOnJQ2uHPj+84yC+R6ooaeblFQzVaQ== 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=H0EkD+c+H30J4BJZE30/FVSkFiRe3C/Ys97IpT30Rwo=; b=cgrEwcyrDzDjCUmyEjupiKYa0r0k019ogS2w4ILuJDdxwvebC7Hkn5ujOqU7Eiu1lwwRYDyIT0mMpwes2dW/VyF7WbAYbIolJ0Z5PzEKuRt2dBC7tVNo9+1Zsjo3Zi+riXQIp6ZPLtNvadIC7M7zwvgoiTR1eMLEzmFb+wBD6YA= Received: from AS4PR09CA0005.eurprd09.prod.outlook.com (2603:10a6:20b:5e0::11) by PAWPR08MB9447.eurprd08.prod.outlook.com (2603:10a6:102:2e5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9203.12; Tue, 14 Oct 2025 16:45:19 +0000 Received: from AM2PEPF0001C70F.eurprd05.prod.outlook.com (2603:10a6:20b:5e0:cafe::c4) by AS4PR09CA0005.outlook.office365.com (2603:10a6:20b:5e0::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9228.10 via Frontend Transport; Tue, 14 Oct 2025 16:45:19 +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 AM2PEPF0001C70F.mail.protection.outlook.com (10.167.16.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9228.7 via Frontend Transport; Tue, 14 Oct 2025 16:45:19 +0000 Received: from AZ-NEU-EX05.Arm.com (10.240.25.133) by AZ-NEU-EX03.Arm.com (10.240.25.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.27; Tue, 14 Oct 2025 16:45:16 +0000 Received: from AZ-NEU-EX05.Arm.com (10.240.25.133) by AZ-NEU-EX05.Arm.com (10.240.25.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 14 Oct 2025 16:45:15 +0000 Received: from PW070M4K.arm.com (10.57.7.89) by mail.arm.com (10.240.25.133) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Tue, 14 Oct 2025 16:45:15 +0000 From: Matthieu Longo To: CC: Tom Tromey , Andrew Burgess , Matthieu Longo Subject: [PATCH v2 1/2] gdb: make Python conftest compatible with Python limited C API Date: Tue, 14 Oct 2025 17:44:57 +0100 Message-ID: <20251014164458.2000229-2-matthieu.longo@arm.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251014164458.2000229-1-matthieu.longo@arm.com> References: <20251014164458.2000229-1-matthieu.longo@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70F:EE_|PAWPR08MB9447:EE_|DU2PEPF00028CFC:EE_|AS4PR08MB8189:EE_ X-MS-Office365-Filtering-Correlation-Id: f2489c7c-c5b4-408f-eaca-08de0b41243e x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|82310400026|376014|36860700013|1800799024|13003099007; X-Microsoft-Antispam-Message-Info-Original: =?us-ascii?Q?Cd4FfPsA05mhPkkxXGihh9NQN7aBbfqvSELV/cHZ5rPueyEG5LdOoMaVieeH?= =?us-ascii?Q?Um8h1jyof344vS2GPbgza+GZ7OLC5t8QvofDFLaAmRnAJiXG1sf0U+iUxi/F?= =?us-ascii?Q?gePjeO1AwTN5GTyBIpOznWz8tU2OVlDqdeYgBW8K0Km0HdsDDPyGnAPAuBMu?= =?us-ascii?Q?Dhky48O22BvcM5UfSFnyX7Atv4HWJA1LQYCSQKDnXCUbeDmHfY7xKUHb8bkN?= =?us-ascii?Q?twpPYBg+8Cm59FtsSpt3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?4NYCtt/lnHPZtdYGnUeN0WV9F+P2jtFQQJ88oFpq+i6Yf9koNESiiU4xdykD?= =?us-ascii?Q?XtdPe7qRF+nuK23Eb7UTLZUcS+OuAtX+0mFdRSw7fNtecp4A0W1UFBw9jOTW?= =?us-ascii?Q?0Tuh8P7prDU+wUlizEPNpbHCy4pbBHySihasCQPNj5DHuKCVpk6WhkeopUeR?= =?us-ascii?Q?IvqY9GB0DSXq4LrhCpgvKwcCT91ZLZ65ZykWO63a1sXrD3r+Lk8WGz+SyQ4f?= =?us-ascii?Q?Y0jnc/hFkmFVAS3C8PhCftivx9kGv9caxgK5bd4xJrBeppsdm9nQ3fGuZbii?= =?us-ascii?Q?rBTwATltsPSYlauFPxj+y+Cnvg5TyNieGyXWjE3Y1d9XMwew32eHFOxLDI+R?= =?us-ascii?Q?UeV//76m40s3EHgYU3kuRAHZMX1kbZexnMN5IdSkjsmjk/qfR4XmUd3+aXvU?= =?us-ascii?Q?yKkemVL7PeOYYWsEJ1g=3D?= X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(376014)(36860700013)(1800799024)(13003099007); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9447 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8c3580f5-71b7-412d-eee6-08de0b410fb1 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|35042699022|14060799003|376014|82310400026|13003099007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?MgcjLLl5mJ5gtN7Vp4sSAWQO3YFMYRlPzPLRTT0bPqLQPnceL+EjaR2Fd73Y?= =?us-ascii?Q?tVn/eYCjttMBwQ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ascii?Q?yryHangnsQqKmCO4ZC1XZ6lW2tnW8H8nPlon46/sEMrkOT4cQgggpGz0k/6r?= =?us-ascii?Q?XmaNAuviaYYApcSQiTm8Q04/O5CWu57jDrpWTE4gZj2LxeePs/OUG/3JJok9?= =?us-ascii?Q?3gr7XxXLDSCspt2UVCSkV6MJpnFmFRe7z0fC4vNmhr/PVZhUyCmn83I0wLy9?= =?us-ascii?Q?+xp0nJmwVb1w9aLO++TAsMe0AognuPwaOi3pcq5RaJU2qnq+oYzYykOu8nBO?= =?us-ascii?Q?W4x/SOEtQ41sCf5Pb4R2JjnFVCkUwjDwPRLl39p7/ss8aZDnMle1eA/eXT2p?= =?us-ascii?Q?Tvmg6SYIvpc1tkMavVrjHxjr49xZ7xniXK0n9IemGKCwZQZYa0s/UIDZFvg9?= =?us-ascii?Q?PsRnxs2OjnVJpj2e81ihf4nfSkL9OlQ403PdGbVm28bYBTjs3gdFIqlDXPcT?= =?us-ascii?Q?+1q9DulhjUussMu+oqzZkhhXFB8XO5y062op3TapWeKS863MBTqvG5zoQZLa?= =?us-ascii?Q?Pql3QePJoqArx19HdJA+8UJcGS/9xT6lPNntnVfVjv+7BfcsDh7WwrzCzBvQ?= =?us-ascii?Q?aywck9SLrw+CHmj9aXtmG/WgCu0+cBBF1sf7k/4EoS3dfLKTiLFiNFt9oLoj?= =?us-ascii?Q?gM9fPzHcZ56joORfm6Q=3D?= 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)(1800799024)(36860700013)(35042699022)(14060799003)(376014)(82310400026)(13003099007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2025 16:45:54.1092 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2489c7c-c5b4-408f-eaca-08de0b41243e 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: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB8189 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 The current test to check the support of '--dynamic-list' linker flag uses PyRun_SimpleString (), which is part of the unstable API. As it is now, the test will systematically fail due to the undefined symbol rather than testing the import of ctypes. This patch replaces PyRun_SimpleString () by an equivalent code relying on the limited C API, and compatible with Python 3.4. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=23830 --- gdb/configure | 13 ++++++++++--- gdb/configure.ac | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/gdb/configure b/gdb/configure index db63481b1c6..b7a2079d206 100755 --- a/gdb/configure +++ b/gdb/configure @@ -31034,11 +31034,18 @@ else int main () { -int err; + + const char *code = "import ctypes\n"; Py_Initialize (); - err = PyRun_SimpleString ("import ctypes\n"); + PyObject *main_module = PyImport_AddModule ("__main__"); + PyObject *global_dict = PyModule_GetDict (main_module); + PyObject *local_dict = PyDict_New (); + PyObject *py_code = Py_CompileString (code, "test", Py_single_input); + if (py_code == NULL) + return 1; + PyObject *res = PyEval_EvalCode (py_code, global_dict, local_dict); Py_Finalize (); - return err == 0 ? 0 : 1; + return res ? 0 : 1; ; return 0; } diff --git a/gdb/configure.ac b/gdb/configure.ac index 52924106bca..a88b6ebffe5 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1761,11 +1761,18 @@ if test "${gdb_native}" = yes; then AC_RUN_IFELSE( [AC_LANG_PROGRAM( [#include "Python.h"], - [int err; + [ + const char *code = "import ctypes\n"; Py_Initialize (); - err = PyRun_SimpleString ("import ctypes\n"); + PyObject *main_module = PyImport_AddModule ("__main__"); + PyObject *global_dict = PyModule_GetDict (main_module); + PyObject *local_dict = PyDict_New (); + PyObject *py_code = Py_CompileString (code, "test", Py_single_input); + if (py_code == NULL) + return 1; + PyObject *res = PyEval_EvalCode (py_code, global_dict, local_dict); Py_Finalize (); - return err == 0 ? 0 : 1;])], + return res ? 0 : 1;])], [dynamic_list=true], [], [true]) LIBS="$old_LIBS" CFLAGS="$old_CFLAGS" -- 2.51.0