mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-25 19:58:06 +08:00
* python/py-evts.c (gdbpy_initialize_py_events): Don't
incref the module.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* python/py-evts.c (gdbpy_initialize_py_events): Don't
|
||||
incref the module.
|
||||
|
||||
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* python/python.c (gdbpy_run_events): Decref the result
|
||||
|
@ -81,9 +81,6 @@ gdbpy_initialize_py_events (void)
|
||||
if (add_new_registry (&gdb_py_events.new_objfile, "new_objfile") < 0)
|
||||
return -1;
|
||||
|
||||
#ifndef IS_PY3K
|
||||
Py_INCREF (gdb_py_events.module);
|
||||
#endif
|
||||
if (PyModule_AddObject (gdb_module,
|
||||
"events",
|
||||
(PyObject *) gdb_py_events.module) < 0)
|
||||
|
Reference in New Issue
Block a user