From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28286 invoked by alias); 24 Aug 2012 18:20:55 -0000 Received: (qmail 28276 invoked by uid 22791); 24 Aug 2012 18:20:54 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Aug 2012 18:20:39 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M9900300UV3EK00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Fri, 24 Aug 2012 21:20:36 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M990022YUYCTYC0@a-mtaout20.012.net.il>; Fri, 24 Aug 2012 21:20:36 +0300 (IDT) Date: Fri, 24 Aug 2012 18:20:00 -0000 From: Eli Zaretskii Subject: Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit In-reply-to: <20120824163856.GA11598@host2.jankratochvil.net> To: Jan Kratochvil Cc: tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <836288gni7.fsf@gnu.org> References: <20120821144916.GB28426@host2.jankratochvil.net> <87y5l6r8rz.fsf@fleche.redhat.com> <20120824163215.GA11323@host2.jankratochvil.net> <20120824163856.GA11598@host2.jankratochvil.net> 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/msg00763.txt.bz2 > Date: Fri, 24 Aug 2012 18:38:56 +0200 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org, Eli Zaretskii > > On Fri, 24 Aug 2012 18:32:15 +0200, Jan Kratochvil wrote: > > 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 > > ? > > Apparently that would not work. Probably either: > if $_have_ignore_errors > set ignore-errors yes > add-auto-load-safe-path ~/src > set ignore-errors no > end > or: > if $_have_ignore_errors > set $_ignore-errors=1 > add-auto-load-safe-path ~/src > set $_ignore-errors=0 > end > or: > if $_have_ignore_errors > ignore-errors > add-auto-load-safe-path ~/src > end > end I fail to see how this is better than using $_version.