diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 832f374..2ca3c50 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -264,30 +264,6 @@ gdbpy_enter::finalize () python_gdbarch = current_inferior ()->arch (); } -/* A helper class to save and restore the GIL, but without touching - the other globals that are handled by gdbpy_enter. */ - -class gdbpy_gil -{ -public: - - gdbpy_gil () - : m_state (PyGILState_Ensure ()) - { - } - - ~gdbpy_gil () - { - PyGILState_Release (m_state); - } - - DISABLE_COPY_AND_ASSIGN (gdbpy_gil); - -private: - - PyGILState_STATE m_state; -}; - /* Set the quit flag. */ static void |