aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-function.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-function.c')
-rw-r--r--gdb/python/py-function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-function.c b/gdb/python/py-function.c
index 5cdf190..dc78b29 100644
--- a/gdb/python/py-function.c
+++ b/gdb/python/py-function.c
@@ -182,6 +182,7 @@ fnpy_init (PyObject *self, PyObject *args, PyObject *kwds)
void
gdbpy_initialize_functions (void)
{
+ fnpy_object_type.tp_new = PyType_GenericNew;
if (PyType_Ready (&fnpy_object_type) < 0)
return;
@@ -231,5 +232,4 @@ static PyTypeObject fnpy_object_type =
0, /* tp_dictoffset */
fnpy_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew /* tp_new */
};