From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26426 invoked by alias); 18 Jan 2012 19:38:21 -0000 Received: (qmail 26416 invoked by uid 22791); 18 Jan 2012 19:38:20 -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-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Jan 2012 19:38:08 +0000 Received: by vbbfa15 with SMTP id fa15so3345879vbb.0 for ; Wed, 18 Jan 2012 11:38:07 -0800 (PST) Received: by 10.52.90.71 with SMTP id bu7mr11467470vdb.63.1326915487141; Wed, 18 Jan 2012 11:38:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.90.71 with SMTP id bu7mr11467455vdb.63.1326915486991; Wed, 18 Jan 2012 11:38:06 -0800 (PST) Received: by 10.220.229.1 with HTTP; Wed, 18 Jan 2012 11:38:06 -0800 (PST) In-Reply-To: <20120118191846.GA21957@host2.jankratochvil.net> 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: Wed, 18 Jan 2012 20:01:00 -0000 Message-ID: Subject: Re: [patch] New set auto-load-local-gdbinit + disable it by default From: Doug Evans To: Jan Kratochvil Cc: Joel Brobecker , Tom Tromey , Eli Zaretskii , 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/msg00681.txt.bz2 On Wed, Jan 18, 2012 at 11:18 AM, Jan Kratochvil wrote: > After the discussion my current plan is: > =A0* change .gdbinit to PROGRAM-gdb.rc (like -gdb.py), > =A0 rename FSF GDB src/gdb/.gdbinit to src/gdb/gdb-gdb.rc, For reference sake, I think you mean $obj/gdb/.gdbinit. src/gdb/.gdbinit does not exist, it's gdbinit.in. Plus I think you need to specify the semantics more: e.g., When will -gdb.rc files get loaded? Will gdb look for -gdb.rc files precisely when it looks for -gdb.py files? What happens if I do "gdb foo ; file bar ; file baz" ? [and remember we'll also have to handle -gdb.scm at some point. 1/2 :-)] > =A0 delete FSF GDB src/testsuite/.gdbinit ("set height 400" only, why?) > =A0 This will fix the annoying problems of running gdb for other programs= in > =A0 the src/gdb/ directory. > =A0* deprecate .gdbinit > =A0* propose less intrusive gdb-gdb.rc, this sure affects only GDB develo= pers, > =A0 like do not change the outer prompt to "(top-gdb)"; I do not mind muc= h. Please do not remove (top-gdb). Rename it to ^gdb, ^^gdb, etc. if you must. [the few times you have to debug gdb under gdb under gdb is not persuasive to change it IMO]