mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-25 11:16:56 +08:00
* 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:
@ -593,6 +593,7 @@ frapy_richcompare (PyObject *self, PyObject *other, int op)
|
||||
void
|
||||
gdbpy_initialize_frames (void)
|
||||
{
|
||||
frame_object_type.tp_new = PyType_GenericNew;
|
||||
if (PyType_Ready (&frame_object_type) < 0)
|
||||
return;
|
||||
|
||||
@ -702,5 +703,4 @@ static PyTypeObject frame_object_type = {
|
||||
0, /* tp_dictoffset */
|
||||
0, /* tp_init */
|
||||
0, /* tp_alloc */
|
||||
PyType_GenericNew /* tp_new */
|
||||
};
|
||||
|
Reference in New Issue
Block a user