+2011-08-05 Eli Zaretskii <eliz@gnu.org>
+
+ * 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.
+
2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
* spu-tdep.c (info_spu_event_command, info_spu_signal_command)
{
int i;
+ breakpoint_object_type.tp_new = PyType_GenericNew;
if (PyType_Ready (&breakpoint_object_type) < 0)
return;
0, /* tp_dictoffset */
bppy_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew /* tp_new */
};
{
int i;
+ cmdpy_object_type.tp_new = PyType_GenericNew;
if (PyType_Ready (&cmdpy_object_type) < 0)
return;
0, /* tp_dictoffset */
cmdpy_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew /* tp_new */
};
\f
void
gdbpy_initialize_frames (void)
{
+ frame_object_type.tp_new = PyType_GenericNew;
if (PyType_Ready (&frame_object_type) < 0)
return;
0, /* tp_dictoffset */
0, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew /* tp_new */
};
void
gdbpy_initialize_functions (void)
{
+ fnpy_object_type.tp_new = PyType_GenericNew;
if (PyType_Ready (&fnpy_object_type) < 0)
return;
0, /* tp_dictoffset */
fnpy_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew /* tp_new */
};
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;
0, /* tp_dictoffset */
0, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew /* tp_new */
};
{
int i;
+ parmpy_object_type.tp_new = PyType_GenericNew;
if (PyType_Ready (&parmpy_object_type) < 0)
return;
0, /* tp_dictoffset */
parmpy_init, /* tp_init */
0, /* tp_alloc */
- PyType_GenericNew /* tp_new */
};