[PATCH v3] [gdb/python] Make sure python sys.exit makes gdb exit
Tom Tromey
tom@tromey.com
Mon Sep 23 16:33:33 GMT 2024
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> + /* Ignore AttributeError and similar. */
Tom> + if (code.get () != nullptr)
Tom> + PyErr_Clear();
I think the test is backward?
Normally we try not to silently swallow exceptions but instead just call
gdbpy_print_stack. Not sure if that works here? If not clearing the
exception is alright.
It's probably hard to even get this to trigger.
Tom
More information about the Gdb-patches
mailing list