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] register gdb.Field


The "field" class was never registered with the gdb module.

Tom

2008-12-09  Tom Tromey  <tromey@redhat.com>

	* python/python-type.c (gdbpy_initialize_types): Add Field to gdb
	module.

diff --git a/gdb/python/python-type.c b/gdb/python/python-type.c
index 409a71d..b2d3654 100644
--- a/gdb/python/python-type.c
+++ b/gdb/python/python-type.c
@@ -642,6 +642,9 @@ gdbpy_initialize_types (void)
 
   Py_INCREF (&type_object_type);
   PyModule_AddObject (gdb_module, "Type", (PyObject *) &type_object_type);
+
+  Py_INCREF (&field_object_type);
+  PyModule_AddObject (gdb_module, "Field", (PyObject *) &field_object_type);
 }
 
 


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