From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5480 invoked by alias); 12 Nov 2010 20:47:29 -0000 Received: (qmail 5468 invoked by uid 22791); 12 Nov 2010 20:47:28 -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, 12 Nov 2010 20:47:21 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oACKlIUi004474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 12 Nov 2010 15:47:18 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id oACKlIYP019746; Fri, 12 Nov 2010 15:47:18 -0500 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 oACKlHW2021963; Fri, 12 Nov 2010 15:47:17 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 28BA9378493; Fri, 12 Nov 2010 13:47:16 -0700 (MST) From: Tom Tromey To: asmwarrior Cc: gdb-patches@sourceware.org Subject: Re: RFA: add python exception subclasses References: <4CB66700.3000907@gmail.com> Date: Fri, 12 Nov 2010 20:47:00 -0000 In-Reply-To: (Tom Tromey's message of "Tue, 19 Oct 2010 14:17:15 -0600") 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-11/txt/msg00165.txt.bz2 >>>>> "Tom" == Tom Tromey writes: Tom> This patch implements this idea. It adds some new subclasses of Tom> RuntimeError, including one specifically for MEMORY_ERROR. Then it Tom> arranges for the memory error exception to be treated specially by the Tom> pretty-printing code. I am checking this in now. I don't think it fully fixes the problem, but it is a good step. I think the other part is fixing the existing printers so that their iterators more gracefully handle a MemoryError thrown when computing a value. Tom