From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17134 invoked by alias); 17 Jan 2012 17:55:05 -0000 Received: (qmail 17124 invoked by uid 22791); 17 Jan 2012 17:55:04 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Jan 2012 17:54:49 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LXY00N00F1C0G00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Tue, 17 Jan 2012 19:54:46 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.115.9]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXY00LZ5F39G2K0@a-mtaout20.012.net.il>; Tue, 17 Jan 2012 19:54:46 +0200 (IST) Date: Tue, 17 Jan 2012 18:00:00 -0000 From: Eli Zaretskii Subject: Re: [patch] New set auto-load-local-gdbinit + disable it by default In-reply-to: <20120117162621.GA3883@host2.jankratochvil.net> To: Jan Kratochvil Cc: dje@google.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <837h0q5i4u.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <20120117095552.GA6141@host2.jankratochvil.net> <20120117162621.GA3883@host2.jankratochvil.net> 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/msg00610.txt.bz2 > Date: Tue, 17 Jan 2012 17:26:22 +0100 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org > > > >        .gdbinit:8: Error in sourced command file: > > >        Argument required (one or more breakpoint numbers). > > >         - What had happened?  Oh, I forgot -nx again! > > > > This only affects gdb developers though. > > It affects also gcc, gas, emacs, former Frysk, ReactOS, there will be more > malicious .gdbinit files; not listed non-intrusive .gdbinit files which only > define some new commands. ??? How's the .gdbinit file that comes with Emacs "malicious"? I find it indispensable, including during the past 2.5 years, when I needed some heavy debugging of the Emacs display engine. > When one wants to debug gdb in gdb the file gdb/.gdbinit is really the > most destructive as all its various commands succeed making the debugging > session completely unusable. If that's really so (and I don't think I agree), then we should simply stop distributing that file, not under the name .gdbinit anyway. But using these use-cases, even if all of them indeed suffer from bad .gdbinit files, to deprive users of having helpful init files in the source tree is really excessive, IMO.