From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4604 invoked by alias); 26 Jul 2008 17:42:55 -0000 Received: (qmail 4572 invoked by uid 22791); 26 Jul 2008 17:42:54 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 26 Jul 2008 17:42:23 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KMnme-0006iy-K1 for gdb-patches@sources.redhat.com; Sat, 26 Jul 2008 17:42:20 +0000 Received: from 207.189.196.231 ([207.189.196.231]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jul 2008 17:42:20 +0000 Received: from tromey by 207.189.196.231 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jul 2008 17:42:20 +0000 To: gdb-patches@sources.redhat.com From: Tom Tromey Subject: Re: [RFA][patch 1/9] Yet another respin of the patch with initial Python support Date: Sat, 26 Jul 2008 17:42:00 -0000 Message-ID: References: <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> <20080726173508.GA16470@caradoc.them.org> Reply-To: tromey@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Attribution: Tom User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) 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-07/txt/msg00488.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: Daniel> No need to talk about the internal meaning for that part - we can just Daniel> talk about interrupting operations with Control-C. I'm not sure how Daniel> to explain "other exceptions"; just "other error conditions"? How about this? When executing the @code{python} command, uncaught Python exceptions are translated to calls to @value{GDBN}'s @code{error} function. Conversely, @value{GDBN} exceptions are converted to Python exceptions. In particular, a user interrupt (via @kbd{C-c} or by typing @kbd{q} at a pagination prompt) is translated to a Python @code{KeyboardInterrupt} exception, and other @value{GDBN} exceptions -- calls to @code{error} in the C code -- are translated to Python @code{RuntimeError}s. Tom