OSDN Git Service

* python/python-internal.h (PyGILState_Ensure): New define.
authortromey <tromey>
Fri, 21 Nov 2008 14:59:55 +0000 (14:59 +0000)
committertromey <tromey>
Fri, 21 Nov 2008 14:59:55 +0000 (14:59 +0000)
commit8b43c77ff0352275f57572eadc876877f222e37f
treee81598a676a09130af70a74f21d53616f5512e16
parentdff702c7b424e1bf285737ae74636870ff3cec26
* 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