From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14520 invoked by alias); 16 Nov 2013 01:03:31 -0000 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 Received: (qmail 14508 invoked by uid 89); 16 Nov 2013 01:03:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ee0-f49.google.com Received: from Unknown (HELO mail-ee0-f49.google.com) (74.125.83.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 16 Nov 2013 01:03:28 +0000 Received: by mail-ee0-f49.google.com with SMTP id b15so1378505eek.22 for ; Fri, 15 Nov 2013 17:03:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=R7CfH0h2b+cvIfiE755mI7qPuw6KmqncZCP/TCtTTL4=; b=WQs5cLWqpvVfZ8LJgtOK2KCa2fG2eWXgOEnpAyozoMp5mcjaT2RnE/UQC52BnHcDik pP51c3R4lvBIVk8vbon2Z2I1Va8y9rxbHnyj4JV1HWr9MrGgOSZdBHWpFUyD+GmDf695 gXP30JAYvjH4fhOHvonCg8M1jwFPk1Pgjnl3qLia43Ek+LlFcIdCA/8BinygpSySena3 5FWwuSPhwAAhB/dvccIcCJ7DPss4n5VlgKrb8Ple5NRvcqgCPyVHG7sXzpjdYgFwMe1a Y7iSfiagp4EpoJBIx3rbXvtJgyAInoRPqyzHHItFwHGdmiDw1PgxsGI1kFm18myxbfUf 4RPQ== X-Gm-Message-State: ALoCoQlraOk9+zkI3M+KNecyLFK8qDWlnfGoevuwLc1dKv6lJKOjspMCNN+fNM4ueQFKphMv08aPvJCNT0hgukiJgsAXwdMgIRHnMwmRTljzZ8IFraO+xSMWLDLxxwHNKVs+FM38Eh7VEBq7F61AXn6zizPSKbNL8QGfuo4ZG0ZYOVztdb1HhHABXKGczWuBhHjd78gIRS6jaj8pe8bDVpiBniwtDfSL5g== MIME-Version: 1.0 X-Received: by 10.15.50.195 with SMTP id l43mr5712264eew.30.1384563799638; Fri, 15 Nov 2013 17:03:19 -0800 (PST) Received: by 10.15.52.133 with HTTP; Fri, 15 Nov 2013 17:03:19 -0800 (PST) In-Reply-To: References: <87r4hefx59.fsf@fleche.redhat.com> <871u995pbt.fsf@fleche.redhat.com> <87ehaq5nkr.fsf@fleche.redhat.com> <87txfds4vf.fsf@fleche.redhat.com> Date: Sat, 16 Nov 2013 02:48:00 -0000 Message-ID: Subject: Re: [RFC] Debug Methods in GDB Python From: Siva Chandra To: Doug Evans Cc: Tom Tromey , gdb-patches Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00435.txt.bz2 On Fri, Nov 15, 2013 at 4:53 PM, Siva Chandra wrote: > On Fri, Nov 15, 2013 at 4:05 PM, Doug Evans wrote: >> I could be wrong but it seemed like errors were handled differently >> than in the pretty-printers. >> The inconsistency doesn't feel warranted. > > Yes, there is a difference. Sorry, sent the last mail without completing my response here. So, yes there is a difference. But as I explained, I did it that way because, in my opinion we should not stop as soon as we hit an error when looking up for a match from among the Python implementations as there could be a source language implementation. If there were to be an error invoking a Python implementation, then that is reported via the relevant functions in valarith.c. All other Python errors are reported but do not stop GDB from proceeding to evaluate expressions.