RFA: minor python fix
Tom Tromey
tromey@redhat.com
Mon Dec 22 16:15:00 GMT 2008
Paul did a build of the python branch against a thread-less python and
needed this patch.
I'd like to apply it to the trunk, because the other thread-safety
patches are already there.
Please review.
Tom
2008-12-15 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/python-internal.h (PyEval_ReleaseLock): New define.
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index e35d9cb..7e56784 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -55,6 +55,7 @@ typedef int Py_ssize_t;
#define PyEval_InitThreads() 0
#define PyThreadState_Swap(ARG) (ARG)
#define PyEval_InitThreads() 0
+#define PyEval_ReleaseLock() 0
#endif
#include "command.h"
More information about the Gdb-patches
mailing list