diff options
Diffstat (limited to 'gdb/python/py-arch.c')
-rw-r--r-- | gdb/python/py-arch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/python/py-arch.c b/gdb/python/py-arch.c index 51559ca..4d133d1 100644 --- a/gdb/python/py-arch.c +++ b/gdb/python/py-arch.c @@ -344,7 +344,7 @@ gdbpy_all_architecture_names (PyObject *self, PyObject *args) /* Initializes the Architecture class in the gdb module. */ -int +static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_arch (void) { arch_object_type.tp_new = PyType_GenericNew; @@ -355,6 +355,10 @@ gdbpy_initialize_arch (void) (PyObject *) &arch_object_type); } +GDBPY_INITIALIZE_FILE (gdbpy_initialize_arch); + + + static PyMethodDef arch_object_methods [] = { { "name", archpy_name, METH_NOARGS, "name () -> String.\n\ |