From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28300 invoked by alias); 24 Aug 2012 16:32:47 -0000 Received: (qmail 28290 invoked by uid 22791); 24 Aug 2012 16:32:46 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS 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, 24 Aug 2012 16:32:33 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7OGWWME017038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 24 Aug 2012 12:32:32 -0400 Received: from host2.jankratochvil.net (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7OGWSC3007045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 24 Aug 2012 12:32:31 -0400 Date: Fri, 24 Aug 2012 16:32:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit Message-ID: <20120824163215.GA11323@host2.jankratochvil.net> References: <20120821144916.GB28426@host2.jankratochvil.net> <87y5l6r8rz.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y5l6r8rz.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-08/txt/msg00739.txt.bz2 On Wed, 22 Aug 2012 22:06:40 +0200, Tom Tromey wrote: > It is trivial to write an 'ignore-errors' in python, or C for that matter. > Or you could resurrect the old try-catch patch for the CLI that is > languishing in bugzilla. Any new GDB command cannot be safely used in older versions, even a possible GDB command 'ignore-errors'. Before writing it is there a consensus for example for ~/.gdbinit to use set $_ignore_errors=1 add-auto-load-safe-path ~/src set $_ignore_errors=0 ? Thanks, Jan