From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7828 invoked by alias); 4 Aug 2008 19:22:59 -0000 Received: (qmail 7820 invoked by uid 22791); 4 Aug 2008 19:22:59 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout2.012.net.il (HELO mtaout2.012.net.il) (84.95.2.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 04 Aug 2008 19:22:04 +0000 Received: from HOME-C4E4A596F7 ([77.126.7.152]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5300EBTCH1LI43@i_mtaout2.012.net.il> for gdb-patches@sourceware.org; Mon, 04 Aug 2008 22:22:14 +0300 (IDT) Date: Mon, 04 Aug 2008 19:22:00 -0000 From: Eli Zaretskii Subject: Re: [RFA][patch 1/9] Yet another respin of the patch with initial Python support In-reply-to: <1217824267.9336.10.camel@localhost.localdomain> X-012-Sender: halo1@inter.net.il To: Thiago Jung Bauermann Cc: drow@false.org, tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: References: <20080429155212.444237503@br.ibm.com> <20080429155304.288626880@br.ibm.com> <20080528205921.GA2969@caradoc.them.org> <20080615181833.uxmo25mg0kko40kw@imap.linux.ibm.com> <1216107418.14956.27.camel@localhost.localdomain> <1216245620.12209.18.camel@localhost.localdomain> <20080718195010.GA14356@caradoc.them.org> <1216653969.31797.6.camel@localhost.localdomain> <1217824267.9336.10.camel@localhost.localdomain> X-IsSubscribed: yes 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-08/txt/msg00060.txt.bz2 > From: Thiago Jung Bauermann > Cc: drow@false.org, tromey@redhat.com, gdb-patches@sourceware.org > Date: Mon, 04 Aug 2008 01:31:07 -0300 > > On Sat, 2008-07-26 at 16:06 +0300, Eli Zaretskii wrote: > > > +Evaluate @var{command}, a string, as a @value{GDBN} CLI command. > > > +Exceptions are translated as noted above. If no error occurs, this > > > +function will return @code{None}. > > > > The last sentence begs a question: what happens if errors _do_ occur? > > I suggest rewording this as: > > Evaluate @var{command}, a string, as a @value{GDBN} CLI command. > If no error occurs, this function will return @code{None}. Otherwise, > GDB exceptions are translated as noted above. Oh, I didn't realize that error == exception here. In that case, let's use the same term: Evaluate @var{command}, a string, as a @value{GDBN} CLI command. If a GDB exception happens while @var{command} runs, it is translated as described above. If no exceptions occur, this function returns @code{None}.