aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-20 20:34:11 +0000
committerTom Tromey <tromey@redhat.com>2013-05-20 20:34:11 +0000
commit72ff8829c136d4337f010bcf7e655a8f8797b55c (patch)
treede68591271c14fecd1a63db49cc6283e797419cb /gdb/python
parent02146ba51f96bbda66cef7da9cc6efa863a50328 (diff)
downloadgdb-72ff8829c136d4337f010bcf7e655a8f8797b55c.zip
gdb-72ff8829c136d4337f010bcf7e655a8f8797b55c.tar.gz
gdb-72ff8829c136d4337f010bcf7e655a8f8797b55c.tar.bz2
* python/py-evts.c (gdbpy_initialize_py_events): Don't
incref the module.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-evts.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/python/py-evts.c b/gdb/python/py-evts.c
index bb384e3..4828bda 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)