From: Tom Tromey Date: Mon, 20 May 2013 20:34:11 +0000 (+0000) Subject: * python/py-evts.c (gdbpy_initialize_py_events): Don't X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72ff8829c136d4337f010bcf7e655a8f8797b55c;p=binutils-gdb.git * python/py-evts.c (gdbpy_initialize_py_events): Don't incref the module. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4dea044c9d5..ed139fde35f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-20 Tom Tromey + + * python/py-evts.c (gdbpy_initialize_py_events): Don't + incref the module. + 2013-05-20 Tom Tromey * python/python.c (gdbpy_run_events): Decref the result diff --git a/gdb/python/py-evts.c b/gdb/python/py-evts.c index bb384e378b6..4828bdad919 100644 --- a/gdb/python/py-evts.c +++ b/gdb/python/py-evts.c @@ -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)