diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-05-22 20:56:32 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-05-22 20:56:32 (GMT) |
commit | e1a2823b5d831349467d309ce42d56055ec9c04f (patch) | |
tree | bc4dd464d10cd379622ceb361398895d59849409 /plugins/gdbrsp | |
parent | 15fb909bdd8ca0f37dd71da7427ea6bc6bb71cbb (diff) |
Rely on GObject-introspection implementation for some registrations.
Diffstat (limited to 'plugins/gdbrsp')
-rw-r--r-- | plugins/gdbrsp/python/gdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/gdbrsp/python/gdb.c b/plugins/gdbrsp/python/gdb.c index 24d9717..15c9f94 100644 --- a/plugins/gdbrsp/python/gdb.c +++ b/plugins/gdbrsp/python/gdb.c @@ -163,7 +163,10 @@ bool ensure_python_gdb_debugger_is_registered(void) dict = PyModule_GetDict(module); - if (!register_class_for_pygobject(dict, G_TYPE_GDB_DEBUGGER, type, get_python_binary_debugger_type())) + if (!ensure_python_binary_debugger_is_registered()) + return false; + + if (!register_class_for_pygobject(dict, G_TYPE_GDB_DEBUGGER, type)) return false; } |