From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18276 invoked by alias); 24 Aug 2012 18:50:01 -0000 Received: (qmail 18201 invoked by uid 22791); 24 Aug 2012 18:50:00 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Aug 2012 18:49:37 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M9900C00W1IZU00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Fri, 24 Aug 2012 21:49:36 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9900CZJWANZF10@a-mtaout21.012.net.il>; Fri, 24 Aug 2012 21:49:36 +0300 (IDT) Date: Fri, 24 Aug 2012 18:50:00 -0000 From: Eli Zaretskii Subject: Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit In-reply-to: <20120824182524.GA15099@host2.jankratochvil.net> To: Jan Kratochvil Cc: tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83393cgm5w.fsf@gnu.org> References: <20120821144916.GB28426@host2.jankratochvil.net> <87y5l6r8rz.fsf@fleche.redhat.com> <20120824163215.GA11323@host2.jankratochvil.net> <20120824163856.GA11598@host2.jankratochvil.net> <836288gni7.fsf@gnu.org> <20120824182524.GA15099@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/msg00768.txt.bz2 > Date: Fri, 24 Aug 2012 20:25:24 +0200 > From: Jan Kratochvil > Cc: tromey@redhat.com, gdb-patches@sourceware.org > > On Fri, 24 Aug 2012 20:20:48 +0200, Eli Zaretskii wrote: > > I fail to see how this is better than using $_version. > > GNU gdb (GDB) Fedora (7.3.50.20110722-16.fc16) > [...] > (gdb) show auto-load safe-path > List of directories from which it is safe to auto-load files is [...]. > > And this is even not yet GDB 7.4. And for RHELs the security backport will be > for even older GDBs. But all this stuff we are discussing is for the user, not for the distributor. A user always knows which version(s) she uses, so she can set the minimum versions accordingly. And if worse comes to worst, one can always be conservative. It's not a disaster not to invoke a command that was back-ported. I find the alternatives more complex and not much more useful.