From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29420 invoked by alias); 22 Dec 2008 16:15:19 -0000 Received: (qmail 29410 invoked by uid 22791); 22 Dec 2008 16:15:17 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KAM_MX,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Dec 2008 16:14:42 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mBMGEe3t004609 for ; Mon, 22 Dec 2008 11:14:40 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mBMGEdkS026355; Mon, 22 Dec 2008 11:14:40 -0500 Received: from opsy.redhat.com (vpn-12-2.rdu.redhat.com [10.11.12.2]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mBMGEdKM024181; Mon, 22 Dec 2008 11:14:39 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id A335D378623; Mon, 22 Dec 2008 09:14:38 -0700 (MST) To: gdb-patches@sourceware.org Subject: RFA: minor python fix From: Tom Tromey Reply-To: tromey@redhat.com Date: Mon, 22 Dec 2008 16:15:00 -0000 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00381.txt.bz2 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 * 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"