aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-infthread.c
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2011-07-11 12:10:19 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2011-07-11 12:10:19 +0000
commit754eadd19fceada3873d39edc914c0b63578c000 (patch)
tree51ed929e4b93e7ffe55e6db389b293b0c8fed1f7 /gdb/python/py-infthread.c
parent2843fdaab1bfef475382e13acfd6651bc4ae9e32 (diff)
downloadgdb-754eadd19fceada3873d39edc914c0b63578c000.zip
gdb-754eadd19fceada3873d39edc914c0b63578c000.tar.gz
gdb-754eadd19fceada3873d39edc914c0b63578c000.tar.bz2
2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
* python/py-inferior.c (infpy_dealloc): New function. (inferior_to_inferior_object): Return a new object, or a new reference to the existing object. (find_thread_object): Cleanup references to inferior. (delete_thread_object): Ditto. * python/py-infthread.c (create_thread_object): Do not increment inferior reference count.
Diffstat (limited to 'gdb/python/py-infthread.c')
-rw-r--r--gdb/python/py-infthread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/python/py-infthread.c b/gdb/python/py-infthread.c
index b37c53c..cb714c7 100644
--- a/gdb/python/py-infthread.c
+++ b/gdb/python/py-infthread.c
@@ -49,7 +49,6 @@ create_thread_object (struct thread_info *tp)
thread_obj->thread = tp;
thread_obj->inf_obj = find_inferior_object (PIDGET (tp->ptid));
- Py_INCREF (thread_obj->inf_obj);
return thread_obj;
}