diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-08-05 14:24:10 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-08-05 14:24:10 +0000 |
commit | 6a1b16642bd239e1eb15f644e367526590316540 (patch) | |
tree | e5ec1d921aae2309befcfb2b0e8e72be5a0a5d83 /gdb/python/py-inferior.c | |
parent | a959a88dc680c3f8658265d0ce3863222adf3652 (diff) | |
download | gdb-6a1b16642bd239e1eb15f644e367526590316540.zip gdb-6a1b16642bd239e1eb15f644e367526590316540.tar.gz gdb-6a1b16642bd239e1eb15f644e367526590316540.tar.bz2 |
* python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
initialization of the tp_new member to the corresponding
gdbpy_initialize_* function.
* python/py-cmd.c (gdbpy_initialize_commands): Likewise.
* python/py-frame.c (gdbpy_initialize_frames): Likewise.
* python/py-function.c (gdbpy_initialize_functions): Likewise.
* python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
* python/py-param.c (gdbpy_initialize_parameters): Likewise.
Diffstat (limited to 'gdb/python/py-inferior.c')
-rw-r--r-- | gdb/python/py-inferior.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index ab9ee8e..6add681 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -702,6 +702,7 @@ gdbpy_initialize_inferior (void) observer_attach_target_resumed (python_on_resume); observer_attach_inferior_exit (python_inferior_exit); + membuf_object_type.tp_new = PyType_GenericNew; if (PyType_Ready (&membuf_object_type) < 0) return; @@ -839,5 +840,4 @@ static PyTypeObject membuf_object_type = { 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ - PyType_GenericNew /* tp_new */ }; |