diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 79c09f95e7..b061e887f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-11-26 Philippe Waroquiers + + * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after + restore_active_ext_lang, as GIL is needed for (indirectly) + called PyOS_InterruptOccurred. + 2019-11-26 Simon Marchi * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with 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. */