From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15043 invoked by alias); 19 Jan 2012 05:52:49 -0000 Received: (qmail 15032 invoked by uid 22791); 19 Jan 2012 05:52:48 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jan 2012 05:52:34 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 8434A2BAFD0; Thu, 19 Jan 2012 00:52:33 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Y2RUkQIGmiFk; Thu, 19 Jan 2012 00:52:33 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id EA7AB2BAF88; Thu, 19 Jan 2012 00:52:32 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 01BAD145615; Thu, 19 Jan 2012 09:52:26 +0400 (RET) Date: Thu, 19 Jan 2012 06:30:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: Tom Tromey , Eli Zaretskii , dje@google.com, gdb-patches@sourceware.org Subject: Re: [patch] New set auto-load-local-gdbinit + disable it by default Message-ID: <20120119055226.GE31383@adacore.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120118191846.GA21957@host2.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00684.txt.bz2 > The goal was you can do either > echo 'set auto-load-local-gdbinit on' >>~/.gdbinit > or > echo 'set auto-load-local-gdbinit on' >>/etc/gdbinit > and you get the former behavior. > > Did you still prefer the command you propose? No, that would be fine too. I wasn't sure that this would work or not. > > . To me, it is extremely important that system-gdbinit is still > > automatically loaded. > > This patch/discussion affect neither /etc/gdbinit nor ~/.gdbinit in any way. Good. > After the discussion my current plan is: > * change .gdbinit to PROGRAM-gdb.rc (like -gdb.py), > rename FSF GDB src/gdb/.gdbinit to src/gdb/gdb-gdb.rc, > delete FSF GDB src/testsuite/.gdbinit ("set height 400" only, why?) > This will fix the annoying problems of running gdb for other programs in > the src/gdb/ directory. I think you can delete the .gdbinit in the testsuite directory right now. I cannot imagine anyway would really depend on it. The plan of making the .gdbinit file more visible seems like a good idea. -- Joel