This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] fixlet in objfile wrapper
- From: Tom Tromey <tromey at redhat dot com>
- To: Project Archer <archer at sourceware dot org>
- Date: Mon, 10 Nov 2008 14:26:00 -0700
- Subject: [python] fixlet in objfile wrapper
- Reply-to: Tom Tromey <tromey at redhat dot com>
The objfile wrapper initialization code was erroneously overwriting
the tp_new field.
Fixed as appended.
Tom
2008-11-10 Tom Tromey <tromey@redhat.com>
* python/python-objfile.c (gdbpy_initialize_objfile): Don't set
tp_new.
diff --git a/gdb/python/python-objfile.c b/gdb/python/python-objfile.c
index 0a942c8..335e05b 100644
--- a/gdb/python/python-objfile.c
+++ b/gdb/python/python-objfile.c
@@ -159,7 +159,6 @@ gdbpy_initialize_objfile (void)
objfpy_objfile_data_key
= register_objfile_data_with_cleanup (clean_up_objfile);
- objfile_object_type.tp_new = PyType_GenericNew;
if (PyType_Ready (&objfile_object_type) < 0)
return;