diff options
Diffstat (limited to 'gdb/python/py-inferior.c')
-rw-r--r-- | gdb/python/py-inferior.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 8b21f28..982d0f8 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -802,7 +802,7 @@ gdbpy_selected_inferior (PyObject *self, PyObject *args) inferior_to_inferior_object (current_inferior ()).release ()); } -int +static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_inferior (void) { if (PyType_Ready (&inferior_object_type) < 0) @@ -838,6 +838,10 @@ gdbpy_initialize_inferior (void) return 0; } +GDBPY_INITIALIZE_FILE (gdbpy_initialize_inferior); + + + static gdb_PyGetSetDef inferior_object_getset[] = { { "num", infpy_get_num, NULL, "ID of inferior, as assigned by GDB.", NULL }, |