* python/python-internal.h (PyGILState_Ensure): New define.
authorTom Tromey <tromey@redhat.com>
Fri, 21 Nov 2008 14:59:56 +0000 (14:59 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 21 Nov 2008 14:59:56 +0000 (14:59 +0000)
commitca30a76297419a1e0eac2ee6a709dff70d30e56a
treee13c237992ce5984085aee7f424db45b05c1dab9
parent3c9ab205d3020ddcb720946b4b7b1b6cc8de7bcb
* python/python-internal.h (PyGILState_Ensure): New define.
(PyGILState_Release): Likewise.
(PyEval_InitThreads): Likewise.
(PyThreadState_Swap): Likewise.
(PyEval_InitThreads): Likewise.
* python/python.c (_initialize_python): Initialize threads.
Release GIL.
(eval_python_from_control_command): Acquire GIL.
(python_command): Likewise.
* python/python-internal.h (make_cleanup_py_restore_gil):
Declare.
* python/python-utils.c (py_gil_restore): New function.
(make_cleanup_py_restore_gil): Likewise.
gdb/ChangeLog
gdb/python/python-internal.h
gdb/python/python-utils.c
gdb/python/python.c