aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-connection.c')
-rw-r--r--gdb/python/py-connection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/python/py-connection.c b/gdb/python/py-connection.c
index 84435eb..3df12b4 100644
--- a/gdb/python/py-connection.c
+++ b/gdb/python/py-connection.c
@@ -285,7 +285,7 @@ connpy_get_connection_details (PyObject *self, void *closure)
/* Python specific initialization for this file. */
-int
+static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
gdbpy_initialize_connection (void)
{
if (PyType_Ready (&connection_object_type) < 0)
@@ -447,6 +447,8 @@ _initialize_py_connection ()
"py-connection");
}
+GDBPY_INITIALIZE_FILE (gdbpy_initialize_connection);
+
/* Methods for the gdb.TargetConnection object type. */
static PyMethodDef connection_object_methods[] =