Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: gdb-patches@sourceware.org
Subject: RFA: minor python fix
Date: Mon, 22 Dec 2008 16:15:00 -0000	[thread overview]
Message-ID: <m3ej009ogh.fsf@fleche.redhat.com> (raw)

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"


             reply	other threads:[~2008-12-22 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-22 16:15 Tom Tromey [this message]
2008-12-22 16:22 ` Daniel Jacobowitz
2008-12-22 16:26   ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ej009ogh.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox