aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-lazy-string.c
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2026-01-27 12:33:42 +0000
committerMatthieu Longo <matthieu.longo@arm.com>2026-01-29 16:46:14 +0000
commit91bf037a394e4bc1dc885aed39fc745fd516fe56 (patch)
tree19d4b02d4b95b31a41bb5452c51042c1fdf7c0a9 /gdb/python/py-lazy-string.c
parent1fe7c3b74924ab69da0469fd93a9de089843e65d (diff)
downloadbinutils-91bf037a394e4bc1dc885aed39fc745fd516fe56.tar.gz
binutils-91bf037a394e4bc1dc885aed39fc745fd516fe56.tar.bz2
binutils-91bf037a394e4bc1dc885aed39fc745fd516fe56.zip
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 <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-lazy-string.c')
-rw-r--r--gdb/python/py-lazy-string.c5
1 files changed, 2 insertions, 3 deletions
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;