From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1509 invoked by alias); 21 Aug 2012 17:59:01 -0000 Received: (qmail 1491 invoked by uid 22791); 21 Aug 2012 17:59:00 -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,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Aug 2012 17:58:41 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M9400I0098E4V00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Tue, 21 Aug 2012 20:58:39 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9400I999XQ5U10@a-mtaout23.012.net.il>; Tue, 21 Aug 2012 20:58:39 +0300 (IDT) Date: Tue, 21 Aug 2012 17:59:00 -0000 From: Eli Zaretskii Subject: Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit In-reply-to: <20120821144916.GB28426@host2.jankratochvil.net> To: Jan Kratochvil Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ipccazzg.fsf@gnu.org> References: <20120821144916.GB28426@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/msg00580.txt.bz2 > Date: Tue, 21 Aug 2012 16:49:16 +0200 > From: Jan Kratochvil > Cc: Eli Zaretskii > > it was requested by Eli in mail: > Re: GDB 7.5: Problems with the auto-load safe-path feature > http://sourceware.org/ml/gdb-patches/2012-08/msg00508.html > D:\usr\eli/.gdbinit:1: Error in sourced command file: "on" or "off" expected. > > IIRC it was already discussed even in the past. > > One solution would be some new mode where errors are only printed and script > execution does not stop there. > > I have implemented a way to explicitly check for GDB version instead. This is a very useful feature, thanks. > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -9307,6 +9307,22 @@ gdbserver that supports the @code{qGetTIBAddr} request. > @xref{General Query Packets}. > This variable contains the address of the thread information block. > > +@anchor{Convenience variable $_version} > +@item $_version Please add a @vindex entry here. > +@xref{Convenience variable $_version}, for how to make such @file{~/.gdbinit} > +setting compatible with @value{GDBN} versions before 7.5 not supporting this > +commend yet. ^^^^^^^ "command" > +@xref{Convenience variable $_version}, for how to make such @file{~/.gdbinit} > +setting compatible with @value{GDBN} versions before 7.5 not supporting this > +commend yet. Likewise. OK with those changes. Thanks.