Message ID | 20191123112609.7362-1-philippe.waroquiers@skynet.be |
---|---|
State | New |
Headers | show |
>>>>> "Philippe" == Philippe Waroquiers <philippe.waroquiers@skynet.be> writes:
Philippe> YYYY-MM-DD Philippe Waroquiers <philippe.waroquiers@skynet.be>
Philippe> * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
Philippe> restore_active_ext_lang, as GIL is needed for (indirectly)
Philippe> called PyOS_InterruptOccurred.
Thank you for the patch and the explanation.
This is ok.
Tom
diff --git a/gdb/python/python.c b/gdb/python/python.c index 7b561a1c35..1cc5ebb7a7 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -228,11 +228,11 @@ gdbpy_enter::~gdbpy_enter () m_error->restore (); - PyGILState_Release (m_state); python_gdbarch = m_gdbarch; python_language = m_language; restore_active_ext_lang (m_previous_active); + PyGILState_Release (m_state); } /* Set the quit flag. */