diff options
Diffstat (limited to 'gdb/python/py-progspace.c')
-rw-r--r-- | gdb/python/py-progspace.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index c1b1cac..572e88d 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -70,7 +70,7 @@ pspy_dealloc (PyObject *self) Py_XDECREF (ps_self->printers); Py_XDECREF (ps_self->type_printers); - self->ob_type->tp_free (self); + Py_TYPE (self)->tp_free (self); } static PyObject * @@ -264,8 +264,7 @@ static PyGetSetDef pspace_getset[] = static PyTypeObject pspace_object_type = { - PyObject_HEAD_INIT (NULL) - 0, /*ob_size*/ + PyVarObject_HEAD_INIT (NULL, 0) "gdb.Progspace", /*tp_name*/ sizeof (pspace_object), /*tp_basicsize*/ 0, /*tp_itemsize*/ |