diff options
| author | Matthieu Longo <matthieu.longo@arm.com> | 2026-01-27 12:33:42 +0000 |
|---|---|---|
| committer | Matthieu Longo <matthieu.longo@arm.com> | 2026-01-29 16:46:14 +0000 |
| commit | 91bf037a394e4bc1dc885aed39fc745fd516fe56 (patch) | |
| tree | 19d4b02d4b95b31a41bb5452c51042c1fdf7c0a9 /gdb/python/py-lazy-string.c | |
| parent | 1fe7c3b74924ab69da0469fd93a9de089843e65d (diff) | |
| download | binutils-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.c | 5 |
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; |
