]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-param.c
* python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
[thirdparty/binutils-gdb.git] / gdb / python / py-param.c
index 5c726d67904fe52e91d909dfad5983f507d98ff8..747d85b3ea3c398eca9fbec41c7850e726cfecd9 100644 (file)
@@ -749,6 +749,7 @@ gdbpy_initialize_parameters (void)
 {
   int i;
 
+  parmpy_object_type.tp_new = PyType_GenericNew;
   if (PyType_Ready (&parmpy_object_type) < 0)
     return;
 
@@ -814,5 +815,4 @@ static PyTypeObject parmpy_object_type =
   0,                             /* tp_dictoffset */
   parmpy_init,                   /* tp_init */
   0,                             /* tp_alloc */
-  PyType_GenericNew              /* tp_new */
 };