From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21355 invoked by alias); 26 Jun 2010 17:10:31 -0000 Received: (qmail 21346 invoked by uid 22791); 26 Jun 2010 17:10:30 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Jun 2010 17:10:26 +0000 Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o5QHANcD028434 for ; Sat, 26 Jun 2010 10:10:23 -0700 Received: from vws10 (vws10.prod.google.com [10.241.21.138]) by hpaq6.eem.corp.google.com with ESMTP id o5QHALuQ027284 for ; Sat, 26 Jun 2010 10:10:22 -0700 Received: by vws10 with SMTP id 10so1475100vws.18 for ; Sat, 26 Jun 2010 10:10:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.127.15 with SMTP id e15mr1484872vcs.147.1277572220502; Sat, 26 Jun 2010 10:10:20 -0700 (PDT) Received: by 10.220.180.70 with HTTP; Sat, 26 Jun 2010 10:10:20 -0700 (PDT) In-Reply-To: References: <4C23426F.4020502@redhat.com> <4C23D5CB.5040702@redhat.com> Date: Sat, 26 Jun 2010 17:10:00 -0000 Message-ID: Subject: Re: [patch] PR python/11407 From: Doug Evans To: tromey@redhat.com Cc: Phil Muldoon , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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: 2010-06/txt/msg00613.txt.bz2 On Fri, Jun 25, 2010 at 11:25 AM, Tom Tromey wrote: >>>>>> "Phil" =3D=3D Phil Muldoon writes: > > Phil> I'm not sure what to do in this case. =A0There seems to be no direct > Phil> equivalent of converting an exception to error output on a stream i= n MI > Phil> (or any cases of TRY ... exception handlers). =A0There are many cas= es of > Phil> MI raising an error() though, so I thought it appropriate in our ca= se > Phil> to raise a warning() instead. =A0Because of the peculiarities of th= e MI > Phil> cases I just report a warning generically and move on. =A0This is n= ot > Phil> totally ideal, but it does allow the error/warning preamble followed > Phil> by the actual locals information. > > I'm not convinced a warning is the best thing. > > Why not catch the exception and print the text of it as the variable's > value? =A0Something like =A0 > I think this will work ok with existing front ends. I like this, fwiw.