This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RFA: minor python fix
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 22 Dec 2008 09:14:38 -0700
- Subject: RFA: minor python fix
- Reply-to: tromey at redhat dot com
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"