* 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.
This commit is contained in:
parent
a959a88dc6
commit
6a1b16642b
7 changed files with 17 additions and 6 deletions
|
@ -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 */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue