diff options
Diffstat (limited to 'gdb/python/py-progspace.c')
-rw-r--r-- | gdb/python/py-progspace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index 5d4911a..9913313 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -294,18 +294,18 @@ pspace_to_pspace_object (struct program_space *pspace) return (PyObject *) object; } -void +int gdbpy_initialize_pspace (void) { pspy_pspace_data_key = register_program_space_data_with_cleanup (NULL, py_free_pspace); if (PyType_Ready (&pspace_object_type) < 0) - return; + return -1; Py_INCREF (&pspace_object_type); - PyModule_AddObject (gdb_module, "Progspace", - (PyObject *) &pspace_object_type); + return PyModule_AddObject (gdb_module, "Progspace", + (PyObject *) &pspace_object_type); } |