]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-type.c
gdb/python: add mechanism to manage Python initialization functions
[thirdparty/binutils-gdb.git] / gdb / python / py-type.c
index feb94efb461fb94f232058520af502e1726a1d5d..1088ee39d96e96cc010338bff21fcec65f1f377f 100644 (file)
@@ -1445,7 +1445,7 @@ gdbpy_lookup_type (PyObject *self, PyObject *args, PyObject *kw)
   return type_to_type_object (type);
 }
 
-int
+static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 gdbpy_initialize_types (void)
 {
   if (PyType_Ready (&type_object_type) < 0)
@@ -1473,6 +1473,8 @@ gdbpy_initialize_types (void)
                                 (PyObject *) &field_object_type);
 }
 
+GDBPY_INITIALIZE_FILE (gdbpy_initialize_types);
+
 \f
 
 static gdb_PyGetSetDef type_object_getset[] =