From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23539 invoked by alias); 8 Oct 2010 21:27:11 -0000 Received: (qmail 23531 invoked by uid 22791); 8 Oct 2010 21:27:10 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Oct 2010 21:27:06 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o98LR2tK016028 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 8 Oct 2010 17:27:03 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id o98LR28v006469; Fri, 8 Oct 2010 17:27:02 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o98LR1eT010502; Fri, 8 Oct 2010 17:27:01 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 2BF783797CC; Fri, 8 Oct 2010 15:27:01 -0600 (MDT) From: Tom Tromey To: Doug Evans Cc: Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [patch] python(+solib error): save/restore error state References: <20101008191154.GA13058@host1.dyn.jankratochvil.net> Date: Fri, 08 Oct 2010 21:27:00 -0000 In-Reply-To: (Doug Evans's message of "Fri, 8 Oct 2010 13:20:11 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.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: 2010-10/txt/msg00161.txt.bz2 >>>>> "Doug" == Doug Evans writes: Doug> Looking at the sources for PyRun_SimpleFile, I see PyErr_Print being Doug> called before -1 is returned. Doug> Similarly for PyRun_SimpleString. Doug> Am I missing something? In that case we should probably just call PyErr_Clear. Tom