From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7157 invoked by alias); 19 Jan 2012 21:06:21 -0000 Received: (qmail 7146 invoked by uid 22791); 19 Jan 2012 21:06:18 -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; Thu, 19 Jan 2012 21:06:04 +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 q0JL5nF6023134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Jan 2012 16:05:49 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0JL5n1F020430; Thu, 19 Jan 2012 16:05:49 -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 q0JL5kti008938; Thu, 19 Jan 2012 16:05:47 -0500 From: Tom Tromey To: Jan Kratochvil Cc: Joel Brobecker , Eli Zaretskii , dje@google.com, 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> <837h0q5i4u.fsf@gnu.org> <20120117175957.GA9415@host2.jankratochvil.net> <83ty3u3uj1.fsf@gnu.org> <20120118035927.GY31383@adacore.com> <20120118191846.GA21957@host2.jankratochvil.net> Date: Thu, 19 Jan 2012 21:07:00 -0000 In-Reply-To: <20120118191846.GA21957@host2.jankratochvil.net> (Jan Kratochvil's message of "Wed, 18 Jan 2012 20:18:46 +0100") 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/msg00714.txt.bz2 >>>>> "Jan" == Jan Kratochvil writes: Jan> After the discussion my current plan is: Jan> * change .gdbinit to PROGRAM-gdb.rc (like -gdb.py), Jan> rename FSF GDB src/gdb/.gdbinit to src/gdb/gdb-gdb.rc, Jan> delete FSF GDB src/testsuite/.gdbinit ("set height 400" only, why?) Jan> This will fix the annoying problems of running gdb for other programs in Jan> the src/gdb/ directory. Jan> * deprecate .gdbinit Jan> * propose less intrusive gdb-gdb.rc, this sure affects only GDB developers, Jan> like do not change the outer prompt to "(top-gdb)"; I do not mind much. Jan> * in a second patch series deal with security, propose some "-safe" option, Jan> PROGRAM-gdb.rc is more visible than .gdbinit, it has the same security Jan> issue like PROGRAM-gdb.py and we have to deal with -gdb.py already anyway. Would you mind very much separating the different patches? I am sold on the security changes, but I'm not as convinced about the other stuff. In particular, as Doug points out, the PROGRAM-gdb.rc thing needs design work; but there doesn't seem to be a technical need to link this to a security improvement. Tom