From 91bf037a394e4bc1dc885aed39fc745fd516fe56 Mon Sep 17 00:00:00 2001 From: Matthieu Longo Date: Tue, 27 Jan 2026 12:33:42 +0000 Subject: gdb: make remaining Python extension objects inherit from PyObject 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. Approved-By: Tom Tromey --- gdb/python/py-lazy-string.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/python/py-lazy-string.c') diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c index 41f958744c1..58cdea69f56 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; -- cgit v1.2.3