From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6hSpK3zSo2CjGgAAWB0awg (envelope-from ) for ; Tue, 18 May 2021 10:43:08 -0400 Received: by simark.ca (Postfix, from userid 112) id A3A6C1F11C; Tue, 18 May 2021 10:43:08 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A94E41E01F for ; Tue, 18 May 2021 10:43:07 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0D7153853817; Tue, 18 May 2021 14:43:07 +0000 (GMT) Received: from gateway34.websitewelcome.com (gateway34.websitewelcome.com [192.185.148.204]) by sourceware.org (Postfix) with ESMTPS id 206D33857836 for ; Tue, 18 May 2021 14:43:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 206D33857836 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 88617323A4 for ; Tue, 18 May 2021 09:43:02 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id j0w2lIs7lvAWvj0w2lSayF; Tue, 18 May 2021 09:43:02 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BV5dz4ESFBptO7/le3E0mmNQ5qmZPHjx3iaedWOA10U=; b=Hg/MzSFdEhZVEIEl1jnXDSxU0Y UPv8FSjMIA68JRi5lcbVBXEnxr5jcjBPdor+TJAOw/V860HoHF8YX5xTSF14svmOvHyKjSMH4vErc Z9Qg4h/o6P86Nt+9jdaCs7x8x; Received: from 75-166-134-27.hlrn.qwest.net ([75.166.134.27]:45736 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lj0w1-000QBK-6D; Tue, 18 May 2021 08:43:01 -0600 From: Tom Tromey To: Simon Marchi via Gdb-patches Subject: Re: [RFC][gdb/cli] Ignore error in gdb command script References: <20210518095958.GA22771@delia> <44B64C9E-9E19-47BD-80CD-0C660C7A9D94@undo.io> <453ffcaa-2a21-62a7-d449-28c7c187231a@polymtl.ca> X-Attribution: Tom Date: Tue, 18 May 2021 08:42:59 -0600 In-Reply-To: <453ffcaa-2a21-62a7-d449-28c7c187231a@polymtl.ca> (Simon Marchi via Gdb-patches's message of "Tue, 18 May 2021 10:10:44 -0400") Message-ID: <87im3g14ss.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.134.27 X-Source-L: No X-Exim-ID: 1lj0w1-000QBK-6D X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-134-27.hlrn.qwest.net (murgatroyd) [75.166.134.27]:45736 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Tromey Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" >>>>> "Simon" == Simon Marchi via Gdb-patches writes: Simon> That sounds useful. I think that "ignore-errors" is a good initial Simon> name, because it's clear and self-describing. We can always find and Simon> add a short alias later. Fedora has shipped a Python implementation of exactly this for a while now. So, +1 for this name and approach from me. One question is whether it should catch 'quit'. I tend to think not but it should be considered. There is some other prior art too: https://sourceware.org/bugzilla/show_bug.cgi?id=8487 ignore-errors covers all the uses I've ever wanted personally, though, so I think it would be fine to just go with that. However if someone is feeling more maximal, try-catch would also be an ok addition. Tom