diff options
Diffstat (limited to 'gdb/python/py-infthread.c')
-rw-r--r-- | gdb/python/py-infthread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/python/py-infthread.c b/gdb/python/py-infthread.c index 7a5f262..d46f573 100644 --- a/gdb/python/py-infthread.c +++ b/gdb/python/py-infthread.c @@ -261,9 +261,8 @@ gdbpy_initialize_thread (void) if (PyType_Ready (&thread_object_type) < 0) return -1; - Py_INCREF (&thread_object_type); - return PyModule_AddObject (gdb_module, "InferiorThread", - (PyObject *) &thread_object_type); + return gdb_pymodule_addobject (gdb_module, "InferiorThread", + (PyObject *) &thread_object_type); } |