From 6a1b16642bd239e1eb15f644e367526590316540 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 5 Aug 2011 14:24:10 +0000 Subject: * 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. --- gdb/python/py-breakpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python/py-breakpoint.c') diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index 126957c..3dc0fca 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -862,6 +862,7 @@ gdbpy_initialize_breakpoints (void) { int i; + breakpoint_object_type.tp_new = PyType_GenericNew; if (PyType_Ready (&breakpoint_object_type) < 0) return; @@ -1016,5 +1017,4 @@ static PyTypeObject breakpoint_object_type = 0, /* tp_dictoffset */ bppy_init, /* tp_init */ 0, /* tp_alloc */ - PyType_GenericNew /* tp_new */ }; -- cgit v1.1