diff options
Diffstat (limited to 'gdb/python/py-function.c')
-rw-r--r-- | gdb/python/py-function.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/python/py-function.c b/gdb/python/py-function.c index 57cdfae..fc0d4dd 100644 --- a/gdb/python/py-function.c +++ b/gdb/python/py-function.c @@ -207,9 +207,8 @@ gdbpy_initialize_functions (void) if (PyType_Ready (&fnpy_object_type) < 0) return -1; - Py_INCREF (&fnpy_object_type); - return PyModule_AddObject (gdb_module, "Function", - (PyObject *) &fnpy_object_type); + return gdb_pymodule_addobject (gdb_module, "Function", + (PyObject *) &fnpy_object_type); } |