From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32742 invoked by alias); 17 Jan 2012 20:26:25 -0000 Received: (qmail 32731 invoked by uid 22791); 17 Jan 2012 20:26:23 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Tue, 17 Jan 2012 20:26:04 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0HKQ3N1001132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Jan 2012 15:26:03 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0HKQ2AP018752; Tue, 17 Jan 2012 15:26:02 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id q0HKQ0R1024427; Tue, 17 Jan 2012 15:26:01 -0500 From: Tom Tromey To: Pedro Alves Cc: Doug Evans , Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [patch] New set auto-load-local-gdbinit + disable it by default References: <20120117095552.GA6141@host2.jankratochvil.net> <20120117162621.GA3883@host2.jankratochvil.net> <20120117165640.GB5344@host2.jankratochvil.net> <20120117174839.GA8459@host2.jankratochvil.net> <4F15D856.7020505@redhat.com> Date: Tue, 17 Jan 2012 20:26:00 -0000 In-Reply-To: <4F15D856.7020505@redhat.com> (Pedro Alves's message of "Tue, 17 Jan 2012 20:21:42 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (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-01/txt/msg00641.txt.bz2 >>>>> "Pedro" == Pedro Alves writes: Pedro> Having to request a safe mode with an extra flag is a flawed design, IMO. Pedro> New, and non-aware-of-the-issues-implied (read, most) users, will just Pedro> not know about it, and will therefore not use it. IMO, if we'll have Pedro> a flag for something like this, its better to have a flag that does Pedro> the opposite, one that enables unsafe functionality. This also makes it Pedro> so that veteran users that trip on missing functionality they always Pedro> knew about, learn about the flags/options as consequence when they go Pedro> look for the alternatives. Yeah, I agree; though I think safe mode should be the default and the "-safe" command-line argument should only serve to disable auto-load-local-gdbinit (or whatever the option will be called). That way I can have auto-load-local-gdbinit by default for myself, but also easily override it on the command line. Tom