From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10755 invoked by alias); 17 Jan 2012 21:14:02 -0000 Received: (qmail 10648 invoked by uid 22791); 17 Jan 2012 21:14:00 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Jan 2012 21:13:46 +0000 Received: by vcbfl11 with SMTP id fl11so684873vcb.0 for ; Tue, 17 Jan 2012 13:13:46 -0800 (PST) Received: by 10.220.40.5 with SMTP id i5mr3071033vce.71.1326834826231; Tue, 17 Jan 2012 13:13:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.40.5 with SMTP id i5mr3071022vce.71.1326834826147; Tue, 17 Jan 2012 13:13:46 -0800 (PST) Received: by 10.220.229.1 with HTTP; Tue, 17 Jan 2012 13:13:46 -0800 (PST) In-Reply-To: <83ty3u3uj1.fsf@gnu.org> References: <20120117095552.GA6141@host2.jankratochvil.net> <20120117162621.GA3883@host2.jankratochvil.net> <837h0q5i4u.fsf@gnu.org> <20120117175957.GA9415@host2.jankratochvil.net> <83ty3u3uj1.fsf@gnu.org> Date: Tue, 17 Jan 2012 22:16:00 -0000 Message-ID: Subject: Re: [patch] New set auto-load-local-gdbinit + disable it by default From: Doug Evans To: Eli Zaretskii Cc: Tom Tromey , jan.kratochvil@redhat.com, gdb-patches@sourceware.org X-System-Of-Record: true Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-01/txt/msg00653.txt.bz2 On Tue, Jan 17, 2012 at 1:10 PM, Eli Zaretskii wrote: >> From: Tom Tromey >> Cc: Eli Zaretskii , dje@google.com, gdb-patches@sourceware= .org >> Date: Tue, 17 Jan 2012 13:28:29 -0700 >> >> >>>>> "Jan" =3D=3D Jan Kratochvil writes: >> >> Jan> On Tue, 17 Jan 2012 18:54:57 +0100, Eli Zaretskii wrote: >> >> ??? How's the .gdbinit file that comes with Emacs "malicious"? >> >> Jan> If one runs "gdb" one expects to get "gdb". >> >> Jan> If one runs "gdb" in any of these directories (Emacs) one surprisin= gly gets >> Jan> some weirdly behaving beast instead. >> >> I'm not convinced by this line of argument. >> >> I think gdb has touted this -- rightly -- as a feature. =A0And, if >> anything, I think we've gone even more in this direction in recent >> years, what with pretty-printers and Python auto-loading. =A0Furthermore, >> I think this is a good trend in general; applications are getting more >> complex, and this provides an important way to adapt the debugger to >> them. >> >> That said, I agree with your conclusions for other reasons. > > If those other reasons are safety, then this is not the way to do it. > Legitimate uses of .gdbinit of many should not be precluded on behalf > of potential wrong-doing of the few. =A0If safety is our concern, we > should make unsafe uses harder or impossible without hurting safe > uses. Maybe we need something like "safe tcl" for our scripting languages. [is there a safe python?] 1/2 :-) /me ducks!