From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17372 invoked by alias); 22 Aug 2012 20:06:56 -0000 Received: (qmail 17363 invoked by uid 22791); 22 Aug 2012 20:06:55 -0000 X-SWARE-Spam-Status: No, hits=-6.6 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; Wed, 22 Aug 2012 20:06:43 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7MK6fKL026830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 22 Aug 2012 16:06:41 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7MK6eNv005368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 22 Aug 2012 16:06:40 -0400 From: Tom Tromey To: Jan Kratochvil Cc: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit References: <20120821144916.GB28426@host2.jankratochvil.net> Date: Wed, 22 Aug 2012 20:06:00 -0000 In-Reply-To: <20120821144916.GB28426@host2.jankratochvil.net> (Jan Kratochvil's message of "Tue, 21 Aug 2012 16:49:16 +0200") Message-ID: <87y5l6r8rz.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00637.txt.bz2 >>>>> "Jan" == Jan Kratochvil writes: Jan> One solution would be some new mode where errors are only printed Jan> and script execution does not stop there. I think that would be preferable. It is better to test features rather than versions. 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. Jan> I have implemented a way to explicitly check for GDB version instead. The problem I see is that distros often ship new features but can't assign a meaningful new version number. Tom