From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29381 invoked by alias); 23 Jun 2008 17:25:57 -0000 Received: (qmail 29372 invoked by uid 22791); 23 Jun 2008 17:25:56 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 23 Jun 2008 17:25:37 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m5NHPWRu008296; Mon, 23 Jun 2008 13:25:32 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m5NHPVZ2024556; Mon, 23 Jun 2008 13:25:32 -0400 Received: from opsy.redhat.com (vpn-10-3.bos.redhat.com [10.16.10.3]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m5NHPVXx029350; Mon, 23 Jun 2008 13:25:31 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id A1653378157; Mon, 23 Jun 2008 11:25:30 -0600 (MDT) To: thiagoju@linux.ibm.com Cc: Daniel Jacobowitz , Thiago Jung Bauermann , gdb-patches@sourceware.org Subject: Re: [RFC][patch 1/9] initial Python support References: <20080429155212.444237503@br.ibm.com> <20080429155304.288626880@br.ibm.com> <20080528205921.GA2969@caradoc.them.org> <20080615181833.uxmo25mg0kko40kw@imap.linux.ibm.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Mon, 23 Jun 2008 17:36:00 -0000 In-Reply-To: <20080615181833.uxmo25mg0kko40kw@imap.linux.ibm.com> (thiagoju@linux.ibm.com's message of "Sun\, 15 Jun 2008 18\:18\:33 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (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-06/txt/msg00389.txt.bz2 >>>>> "Thiago" == thiagoju writes: >> > + if (PyErr_Occurred ()) >> > + { >> > + PyErr_Print (); >> > + error ("error while executing Python code"); >> > + } >> > +} >> _() around arguments to error. Also, in general PyErr_Print is >> probably dumping to stderr? Output should go through GDB's error >> mechanisms, and in this case probably be part of the argument to >> error. Can you get it to return an error string instead? Thiago> This is stillpending, I think. Yeah, this one is still pending. I haven't dug into what to do here yet... feel free to take it if you want :). Otherwise I will get to it when I'm a bit more caught up. Tom