From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31266 invoked by alias); 17 Jan 2012 20:22:01 -0000 Received: (qmail 31246 invoked by uid 22791); 17 Jan 2012 20:21:57 -0000 X-SWARE-Spam-Status: No, hits=-6.8 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:21:45 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0HKLiXY031634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Jan 2012 15:21:44 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0HKLg1W013678; Tue, 17 Jan 2012 15:21:42 -0500 Message-ID: <4F15D856.7020505@redhat.com> Date: Tue, 17 Jan 2012 20:24:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: Tom Tromey 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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/msg00639.txt.bz2 On 01/17/2012 07:54 PM, Tom Tromey wrote: > Jan> similiar to the extra VM. I plan to just merge the paragraph above > Jan> into some user-accessible command-line option "-safe". I am just > Jan> not sure how to load pretty printers from system libraries which > Jan> are safe but which do not get loaded after "set auto-load-scripts > Jan> off". > > Doug> Are we sure we want to claim to the user community -safe is, umm, safe? > Doug> It seems like we're a fair ways from being ready to claim it, setting > Doug> aside auto-loading. > > It seems to me that having the option would give us some impetus toward > fixing the problems, if we can actually make them occur; and furthermore > the option gives us a framework in which to fix all such problems, > namely, check the flag. Having to request a safe mode with an extra flag is a flawed design, IMO. New, and non-aware-of-the-issues-implied (read, most) users, will just not know about it, and will therefore not use it. IMO, if we'll have a flag for something like this, its better to have a flag that does the opposite, one that enables unsafe functionality. This also makes it so that veteran users that trip on missing functionality they always knew about, learn about the flags/options as consequence when they go look for the alternatives. -- Pedro Alves