]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-symbol.c
gdb/python: add mechanism to manage Python initialization functions
[thirdparty/binutils-gdb.git] / gdb / python / py-symbol.c
index 066a27f0e35c0ebc9dc2da5ab6671e4a9af1692e..ff3d18504e77a7ff353cae3ba219dd6f7c16a6bd 100644 (file)
@@ -618,7 +618,7 @@ gdbpy_lookup_static_symbols (PyObject *self, PyObject *args, PyObject *kw)
   return return_list.release ();
 }
 
-int
+static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
 gdbpy_initialize_symbols (void)
 {
   if (PyType_Ready (&symbol_object_type) < 0)
@@ -687,6 +687,8 @@ gdbpy_initialize_symbols (void)
                                 (PyObject *) &symbol_object_type);
 }
 
+GDBPY_INITIALIZE_FILE (gdbpy_initialize_symbols);
+
 \f
 
 static gdb_PyGetSetDef symbol_object_getset[] = {