aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-breakpoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-breakpoint.c')
-rw-r--r--gdb/python/py-breakpoint.c2
1 files changed, 1 insertions, 1 deletions
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 */
};