This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[python] fixlet in objfile wrapper


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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]