From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 2e0tJa3weGklQRgAWB0awg (envelope-from ) for ; Tue, 27 Jan 2026 12:06:53 -0500 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=NKdyq4Oi; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=NKdyq4Oi; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 91DCF1E08D; Tue, 27 Jan 2026 12:06:53 -0500 (EST) 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 A613D1E08D for ; Tue, 27 Jan 2026 12:06:52 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 36AD24BA2E33 for ; Tue, 27 Jan 2026 17:06:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36AD24BA2E33 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=NKdyq4Oi; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=NKdyq4Oi Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazlp170120005.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::5]) by sourceware.org (Postfix) with ESMTPS id 475854BA9025 for ; Tue, 27 Jan 2026 17:05:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 475854BA9025 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 475854BA9025 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c200::5 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1769533549; cv=pass; b=qJKue/QVM+uUDlGP/GgDm92Z7GD9bvyci3TyQ/DGxvtjS54KuYTHBKI6crzWJR+R66x3X0UB9KhWWsqWMou7p/vrE3NuhdnbiwZGvdLYTmkfLUP600TWlJu6OE+dNyp/83FNSSBbHXeC1N6vyTzIef3yVKxw69r2/2QFmtgPdPI= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1769533549; c=relaxed/simple; bh=WKGcDPzZT1L2USjOYrkkh1Dlmh77u8OSzScMLOEqBHs=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=OCEYZkiCn37IzK9yfeVGgCsVMDzZleTmoM07Msb1ig7vjBMCWs9yP+c8QL6NKgb3Zm0VAHkPU0/pmFBuKyW1ecmGdIfMQHoPYtIFccYQiRTd51QYBb/LdYm32MQdFJaCL3T43ogKIJYNwCtd7Psu5pCm7rJu5468K1m6Ns0mtDs= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 475854BA9025 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=T2GchSGUhkEFfw0vJofRZ65G9SGeOLF7kT0cPi2OlM6ArNKchR3gNJ7qfqUgkFI39W7rwNiiSQEZAQUUhE0kSWOBjSWsxoXvmntP4uHR0pK8mRkdvsdUtTJdLTYkTwosiws2irf6Gi54cGkveKYjnnYvN8bWq+G61SnZVoplsIJ0OVuOcwFk8I3512YqWk9Rxj9mbzzB4MXiSQ45qV/X0of1ihCWSGgJ+mm+kXSZ/2dKzm+alo02MhB29kSyAxnLUEwQLt/dVL8+lm4HJv+5/a/Jgkb8YP8ijhWHQTaKge/UONKW3MwDGEu/lKtvP2h6QjpcSSgbalbBACsrpvHElA== 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=x+mh0A98yyzAEaPn78N49iGeT/YMEVWMtsFEkfZ1aok=; b=JNKt5VI6RoWe5oGfG94jezUE8I5F7/eoymnlqgGSp5YBh0VHw44U3XIWUj9U4pp58+eZ3g+jcs5e1TZxe5oq4WtT9Ico23WrGtCxXKkUGNjChRE77K3iHgzXm7LQKL8Vdd6uxdc2xWi9Qr3PGy1r4KfZvoQ8ARewYRBHVtqSPwGcmtVKXi1OPBe2dMeGNzUzkTUV1uQDb/MGqLGnG37nXxOpdPJ1vBedJ1EXWON34Q5neDemwZi35311g8Ov3o7TdV9L35C5/I4M6GsxaMIrKrS/4zkCzPiAFL8zEdinUZm1zd8SKgwugP0UPaIpf6SRbSUGxwY8JLKGGr1IMDDKHg== 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=x+mh0A98yyzAEaPn78N49iGeT/YMEVWMtsFEkfZ1aok=; b=NKdyq4OiJF+VPsP/w7O43neST7Efi2WMtFNola8TZsVdWp/yYsWn6Ms8wxTcUV2mHt317xhQ+1hMnK85OlFBFI2mMGW0vE4TlHCdacLSreYGXCkDgjXnPwNEbff2i6c9ryzrQlwGtwyhVNuGLTvhN82NVGQckcEvHKoCrGhnXO8= Received: from DU2P250CA0019.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::24) by GV1PR08MB8716.eurprd08.prod.outlook.com (2603:10a6:150:86::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.16; Tue, 27 Jan 2026 17:05:41 +0000 Received: from DB5PEPF00014B9C.eurprd02.prod.outlook.com (2603:10a6:10:231:cafe::e7) by DU2P250CA0019.outlook.office365.com (2603:10a6:10:231::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9542.16 via Frontend Transport; Tue, 27 Jan 2026 17:05:46 +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 DB5PEPF00014B9C.mail.protection.outlook.com (10.167.8.170) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9564.3 via Frontend Transport; Tue, 27 Jan 2026 17:05:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NWmZYvFxtCYBuclte0idjtxAiN05RTcp1WAfGSyz7HkasZFHHqbbZFNG/iqsXat7/edB/UH62pmRf2KJhBtzxnHhAeh8YRQDfsx1OQEqFZWqHyJoz2Omv91va7wSuMPozGKArYGtaEllAl/cZRv21U0kU0BgFl6BtR56opqiC8+/Y/EsC/M7sb3DZx6fdIbEmqxMHhgoxlgsiiZDtyYGBd3mXn15mLpN8ruPICvcAKIpegKjbLdIdT6VBa/6NICbIpC3c17pSf12DSnIH+xmUxc+b8nVaU1kL9VNC22TUihn6lnFyK0BrQwT+Zjt9k5yKx37aWESdTK1KLwjwV2lWA== 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=x+mh0A98yyzAEaPn78N49iGeT/YMEVWMtsFEkfZ1aok=; b=mZCW7+AA4ENTb79QrNzrGajdO7PfKHveQUTxGfpsE1RhUFNL5j4uB7RhVj3Tp8ih3rGoFzgg8EvRx+/lZM0P7akYxI5EpwtQjljVJqO/kE7xUmu99wQVY9FTfzPeZfTquj+QKXKVwVBG3xrVovykUAGBt5oNXxqkAzNvkkuesVG9NZGboPEXO7AYw/vFOTwfT2HD/SyLilcqDdqnWGVIqlUeBck95muSZ53HBpgv2Gq98uqyTMJblaH7P3BfTUnY+V/V2Lg21ORxJhiSsJ+gcY+sklH3CW5xDAfdyUif15iBTolgf7YtGSjYNFbEHK3R2t5bvKXZ6hpyefgandKppA== 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=x+mh0A98yyzAEaPn78N49iGeT/YMEVWMtsFEkfZ1aok=; b=NKdyq4OiJF+VPsP/w7O43neST7Efi2WMtFNola8TZsVdWp/yYsWn6Ms8wxTcUV2mHt317xhQ+1hMnK85OlFBFI2mMGW0vE4TlHCdacLSreYGXCkDgjXnPwNEbff2i6c9ryzrQlwGtwyhVNuGLTvhN82NVGQckcEvHKoCrGhnXO8= Received: from DUZPR01CA0336.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b8::21) by VI0PR08MB10970.eurprd08.prod.outlook.com (2603:10a6:800:256::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.15; Tue, 27 Jan 2026 17:03:22 +0000 Received: from DU6PEPF0000A7DE.eurprd02.prod.outlook.com (2603:10a6:10:4b8:cafe::1f) by DUZPR01CA0336.outlook.office365.com (2603:10a6:10:4b8::21) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9564.7 via Frontend Transport; Tue, 27 Jan 2026 17:04:12 +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 DU6PEPF0000A7DE.mail.protection.outlook.com (10.167.8.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.3 via Frontend Transport; Tue, 27 Jan 2026 17:03:22 +0000 Received: from AZ-NEU-EX03.Arm.com (10.240.25.137) 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, 27 Jan 2026 17:03:20 +0000 Received: from PF4S4363.arm.com (10.57.51.184) by mail.arm.com (10.240.25.137) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Tue, 27 Jan 2026 17:03:20 +0000 From: Matthieu Longo To: CC: Tom Tromey , Matthieu Longo Subject: [PATCH v2 6/6] gdb: make remaining Python extension objects inherit from PyObject Date: Tue, 27 Jan 2026 17:02:15 +0000 Message-ID: <20260127170215.1803582-7-matthieu.longo@arm.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260127170215.1803582-1-matthieu.longo@arm.com> References: <20260127170215.1803582-1-matthieu.longo@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU6PEPF0000A7DE:EE_|VI0PR08MB10970:EE_|DB5PEPF00014B9C:EE_|GV1PR08MB8716:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ad9df78-737b-4cbf-4b29-08de5dc64d18 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|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info-Original: =?us-ascii?Q?U7E+vDJm5v5Dij6SHdoR1HtqF12EzZdVXF531qqtmwHwYK9XgbtFUqYOzgw5?= =?us-ascii?Q?95wOgm4RxaBFigalxaCxqEK6kiBE8q/HY7llZq+7eBgb/VUru7MZ4sBGNJAc?= =?us-ascii?Q?zWlDbuu0FJPGUedaSsG1QUA3p5/qDO/VeHNJHxGPVC9s22zEUpZDECcbNyBE?= =?us-ascii?Q?TiUlNeu8UdRrBvffEu1iYhY9jmJOOe267Qube5KFBGW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qpVnfuyUOEEXxTzcIZI6eZU16HmddVQCrmxOAh6oNuQB?= =?us-ascii?Q?JIDTKd/tRG7DYL/yNhyDqYELYMXROMKeVEMIgAAPVAyozxetLu/B0UygbfRK?= =?us-ascii?Q?KC7iGSXFd+35oXwt/T0RIJWMX9zvTQZHiJtuOFDqwu+Pkw8ZCy7yZrovquEj?= =?us-ascii?Q?Jy2des6hdweiQuTpQASiN3EFRCLBx/q4fN76sqb7AiNuqIX0k/bhPLStJfqm?= =?us-ascii?Q?COz2JyssWE6WdCCcuOZ2GQMC9OBsQQ+dJ/uR/4Z4FTMqHDyiZV4D7RLn5+7l?= =?us-ascii?Q?pZhns9KFNkgqZ+cHzPVMyTmsTSENfDgrSPBY8M7nZYOtboY7oGioDf984hui?= =?us-ascii?Q?IaMZf5Apt4tU2qoVjVelJtjRYOqeE5+2Q39OggELnhzHqD9kUY1LOFygaHfa?= =?us-ascii?Q?v5DPlEzq2Rem/bowJDRk8AZLsVqqxS79M8YkQD+QTbvXKQyN6nOfF8y8XLGn?= =?us-ascii?Q?xczBwo/n0cKRaOi/efMaKrqfQXoEAHrBFGC8oR6N8GZ53QpPDmr4sBJzC0Sf?= =?us-ascii?Q?lvfHK3UdHkVK/V//HoAdkAEGwhEvjGK8hW3gMKwbAtx7hijhiOo5B9nxONac?= =?us-ascii?Q?NT9oDQ=3D=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)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB10970 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B9C.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ab134080-8918-46a7-217f-08de5dc5fa6c X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|35042699022|82310400026|36860700013|376014|14060799003; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ZLR+PpDxMy8NtlKk9w3UI1EmUJZFf5XijpCtPJumdBzwXYK/9mGnhFPhAFm5?= =?us-ascii?Q?0kIVAtAoJPpGDGTpayU9AHg0z/F0LnaDBHOAwa/Xku9paOcDGp8N5e9Hopnf?= =?us-ascii?Q?lsTmdNbUGg+N5UTqDObaiiX02eLgG+UbBnbSB/OoibQWpHLKZ5t/jaUWd++f?= =?us-ascii?Q?nD912oB8tYFpZQD8oFYzLXqznPk/kb+jPLhxkX19LbyQMjnnZ8mH+hwDnyc+?= =?us-ascii?Q?1WPQczLuhxaHiTGTq0evinfI+WeQ/tXsD35Bw3eoDrH29KBXzTUbuWER5MC1?= =?us-ascii?Q?JKTRGC831cm58BbWV/c0T6AQc0SadlQ2NTEy/HRV2mgXp09OzuLMvPUzJkTo?= =?us-ascii?Q?Rg62nV/b9gJjK48b9pfLXHPmUl308KUBZAUASpecxEhyzeywLy5RWx+qSFRo?= =?us-ascii?Q?0HHTtBlm2cEctx5rQgCY8y4LnPqe5jHhFxS5pe1sZNrh4s/9YbaiJ3M9SKCG?= =?us-ascii?Q?N3f3+CHgK3Pn2kqqUpNt3GrAWyvasgbIZ3rNHT/DEXG6UHjuIXV0fdPqIGMt?= =?us-ascii?Q?B7ylbl/Q4n3V2yrTHv1jpY6Ovpl8uPsCyC7eXCJfCDgyWuJyXxHKL9Y0oB3V?= =?us-ascii?Q?+/b47VK5zCstGbhFAYHMmcH+BGPK9h6hbRfekW/CVpwen8qiV7NJ8lAzwpCq?= =?us-ascii?Q?TyiTsE3mA7WtBjcBekhn4mpXTATI8gDwOwPlT17Zel7wwnHp+iXrRMIVHLBX?= =?us-ascii?Q?JDxfWc9m/FiDxcYffygv1RPFg7pB/y0NInAWkYNaGvfxISImZ9NAOx7NM+4l?= =?us-ascii?Q?U+0ZsyVll1qHoDAIS6cmNCMi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seQ=3D=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)(35042699022)(82310400026)(36860700013)(376014)(14060799003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2026 17:05:41.0923 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ad9df78-737b-4cbf-4b29-08de5dc64d18 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: DB5PEPF00014B9C.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8716 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 Previous patches made some Python extension objects ipublicly inherit directly or indirectly from PyObject. In the interest of consistency, this patch makes all remaining Python extension objects still not inheriting from PyObject do so. --- gdb/python/py-arch.c | 4 ++-- gdb/python/py-block.c | 8 ++++---- gdb/python/py-disasm.c | 8 ++------ gdb/python/py-instruction.c | 5 ++--- gdb/python/py-lazy-string.c | 5 ++--- gdb/python/py-linetable.c | 12 ++++++------ gdb/python/py-param.c | 4 +--- gdb/python/py-prettyprint.c | 6 ++---- gdb/python/py-record-btrace.c | 5 ++--- gdb/python/py-record.c | 4 +--- gdb/python/py-record.h | 8 ++------ gdb/python/py-registers.c | 10 ++++------ gdb/python/py-style.c | 4 +--- gdb/python/py-type.c | 4 ++-- gdb/python/py-unwind.c | 8 ++------ gdb/python/py-value.c | 4 ++-- 16 files changed, 37 insertions(+), 62 deletions(-) diff --git a/gdb/python/py-arch.c b/gdb/python/py-arch.c index 765a21ae0b7..f761c7ba30b 100644 --- a/gdb/python/py-arch.c +++ b/gdb/python/py-arch.c @@ -22,8 +22,8 @@ #include "disasm.h" #include "python-internal.h" -struct arch_object { - PyObject_HEAD +struct arch_object: public PyObject +{ struct gdbarch *gdbarch; }; diff --git a/gdb/python/py-block.c b/gdb/python/py-block.c index 3a59d767b5c..4b02115a5f9 100644 --- a/gdb/python/py-block.c +++ b/gdb/python/py-block.c @@ -23,8 +23,8 @@ #include "python-internal.h" #include "objfiles.h" -struct block_object { - PyObject_HEAD +struct block_object: public PyObject +{ /* The GDB block structure that represents a frame's code block. */ const struct block *block; /* The backing object file. There is no direct relationship in GDB @@ -33,8 +33,8 @@ struct block_object { struct objfile *objfile; }; -struct block_syms_iterator_object { - PyObject_HEAD +struct block_syms_iterator_object: public PyObject +{ /* The block. */ const struct block *block; /* The iterator for that block. */ diff --git a/gdb/python/py-disasm.c b/gdb/python/py-disasm.c index 037223f05e3..8b796628d72 100644 --- a/gdb/python/py-disasm.c +++ b/gdb/python/py-disasm.c @@ -57,10 +57,8 @@ extern PyTypeObject disasm_info_object_type; that is an address that should be printed using a call to GDB's internal print_address function. */ -struct disasm_addr_part_object +struct disasm_addr_part_object: public PyObject { - PyObject_HEAD - /* The address to be formatted. */ bfd_vma address; @@ -77,10 +75,8 @@ extern PyTypeObject disasm_addr_part_object_type; this type represents a small part of a disassembled instruction; a part that is a piece of test along with an associated style. */ -struct disasm_text_part_object +struct disasm_text_part_object: public PyObject { - PyObject_HEAD - /* The string that is this part. */ std::string *string; diff --git a/gdb/python/py-instruction.c b/gdb/python/py-instruction.c index b7ab6e4668f..df64d85988f 100644 --- a/gdb/python/py-instruction.c +++ b/gdb/python/py-instruction.c @@ -29,9 +29,8 @@ PyTypeObject py_insn_type = { /* Python instruction object. */ -struct py_insn_obj { - PyObject_HEAD -}; +struct py_insn_obj: public PyObject +{}; /* Getter function for gdb.Instruction attributes. */ diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c index 41f958744c1..3e95a041dcc 100644 --- a/gdb/python/py-lazy-string.c +++ b/gdb/python/py-lazy-string.c @@ -23,9 +23,8 @@ #include "valprint.h" #include "language.h" -struct lazy_string_object { - PyObject_HEAD - +struct lazy_string_object: public PyObject +{ /* Holds the address of the lazy string. */ CORE_ADDR address; diff --git a/gdb/python/py-linetable.c b/gdb/python/py-linetable.c index 0ea2d843dd3..2db3488b1d3 100644 --- a/gdb/python/py-linetable.c +++ b/gdb/python/py-linetable.c @@ -19,8 +19,8 @@ #include "python-internal.h" -struct linetable_entry_object { - PyObject_HEAD +struct linetable_entry_object: public PyObject +{ /* The line table source line. */ int line; /* The pc associated with the source line. */ @@ -29,8 +29,8 @@ struct linetable_entry_object { extern PyTypeObject linetable_entry_object_type; -struct linetable_object { - PyObject_HEAD +struct linetable_object: public PyObject +{ /* The symtab python object. We store the Python object here as the underlying symtab can become invalid, and we have to run validity checks on it. */ @@ -39,8 +39,8 @@ struct linetable_object { extern PyTypeObject linetable_object_type; -struct ltpy_iterator_object { - PyObject_HEAD +struct ltpy_iterator_object: public PyObject +{ /* The current entry in the line table for the iterator */ int current_index; /* Pointer back to the original source line table object. Needed to diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index f305661fa43..4f61b8efd3c 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -124,10 +124,8 @@ union parmpy_variable }; /* A GDB parameter. */ -struct parmpy_object +struct parmpy_object: public PyObject { - PyObject_HEAD - /* The type of the parameter. */ enum var_types type; diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c index a920e6f3cf7..8895f1c8771 100644 --- a/gdb/python/py-prettyprint.c +++ b/gdb/python/py-prettyprint.c @@ -783,10 +783,8 @@ gdbpy_get_print_options (value_print_options *opts) /* A ValuePrinter is just a "tag", so it has no state other than that required by Python. */ -struct printer_object -{ - PyObject_HEAD -}; +struct printer_object: public PyObject +{}; /* The ValuePrinter type object. */ PyTypeObject printer_object_type = diff --git a/gdb/python/py-record-btrace.c b/gdb/python/py-record-btrace.c index d9534c02331..637488d797c 100644 --- a/gdb/python/py-record-btrace.c +++ b/gdb/python/py-record-btrace.c @@ -29,9 +29,8 @@ /* Python object for btrace record lists. */ -struct btpy_list_object { - PyObject_HEAD - +struct btpy_list_object: public PyObject +{ /* The thread this list belongs to. */ thread_info *thread; diff --git a/gdb/python/py-record.c b/gdb/python/py-record.c index 3c985c172e1..bf0551cfeac 100644 --- a/gdb/python/py-record.c +++ b/gdb/python/py-record.c @@ -55,10 +55,8 @@ PyTypeObject recpy_aux_type = { }; /* Python RecordGap object. */ -struct recpy_gap_object +struct recpy_gap_object: public PyObject { - PyObject_HEAD - /* Reason code. */ int reason_code; diff --git a/gdb/python/py-record.h b/gdb/python/py-record.h index 039a1b125e3..0722a918c68 100644 --- a/gdb/python/py-record.h +++ b/gdb/python/py-record.h @@ -25,10 +25,8 @@ #include "record.h" /* Python Record object. */ -struct recpy_record_object +struct recpy_record_object: public PyObject { - PyObject_HEAD - /* The thread this object refers to. */ thread_info *thread; @@ -39,10 +37,8 @@ struct recpy_record_object /* Python recorded element object. This is generic enough to represent recorded instructions as well as recorded function call segments, hence the generic name. */ -struct recpy_element_object +struct recpy_element_object: public PyObject { - PyObject_HEAD - /* The thread this object refers to. */ thread_info *thread; diff --git a/gdb/python/py-registers.c b/gdb/python/py-registers.c index 30b333c444c..d600b67be77 100644 --- a/gdb/python/py-registers.c +++ b/gdb/python/py-registers.c @@ -32,9 +32,8 @@ static const registry::key gdbpy_register_object_data; /* Structure for iterator over register descriptors. */ -struct register_descriptor_iterator_object { - PyObject_HEAD - +struct register_descriptor_iterator_object: public PyObject +{ /* The register group that the user is iterating over. This will never be NULL. */ const struct reggroup *reggroup; @@ -61,9 +60,8 @@ struct register_descriptor_object: public PyObject extern PyTypeObject register_descriptor_object_type; /* Structure for iterator over register groups. */ -struct reggroup_iterator_object { - PyObject_HEAD - +struct reggroup_iterator_object: public PyObject +{ /* The index into GROUPS for the next group to return. */ std::vector::size_type index; diff --git a/gdb/python/py-style.c b/gdb/python/py-style.c index f404864251c..3172400fcaf 100644 --- a/gdb/python/py-style.c +++ b/gdb/python/py-style.c @@ -36,10 +36,8 @@ static struct { }; /* A style. */ -struct style_object +struct style_object: public PyObject { - PyObject_HEAD - /* Underlying style, only valid when STYLE_NAME is NULL. */ ui_file_style style; diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 1cc583b38d2..3b0525c6ec6 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -42,8 +42,8 @@ struct field_object: public gdbpy__dict__wrapper extern PyTypeObject field_object_type; /* A type iterator object. */ -struct typy_iterator_object { - PyObject_HEAD +struct typy_iterator_object: public PyObject +{ /* The current field index. */ int field; /* What to return. */ diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index f9fd848ea0e..07effe7fa88 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -66,10 +66,8 @@ show_pyuw_debug (struct ui_file *file, int from_tty, } \ } while (0) -struct pending_frame_object +struct pending_frame_object: public PyObject { - PyObject_HEAD - /* Frame we are unwinding. */ frame_info_ptr frame_info; @@ -94,10 +92,8 @@ struct saved_reg /* The data we keep for the PyUnwindInfo: pending_frame, saved registers and frame ID. */ -struct unwind_info_object +struct unwind_info_object: public PyObject { - PyObject_HEAD - /* gdb.PendingFrame for the frame we are unwinding. */ PyObject *pending_frame; diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 6c28f13a3de..4f2f9cc4b0b 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -54,8 +54,8 @@ #define builtin_type_pybool \ language_bool_type (current_language, gdbpy_enter::get_gdbarch ()) -struct value_object { - PyObject_HEAD +struct value_object: public PyObject +{ struct value_object *next; struct value_object *prev; struct value *value; -- 2.52.0