From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3848 invoked by alias); 17 Jan 2012 16:54:10 -0000 Received: (qmail 3839 invoked by uid 22791); 17 Jan 2012 16:54:09 -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,TW_BJ,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; Tue, 17 Jan 2012 16:53:49 +0000 Received: by vbbfa15 with SMTP id fa15so2151235vbb.0 for ; Tue, 17 Jan 2012 08:53:48 -0800 (PST) Received: by 10.52.90.71 with SMTP id bu7mr8841006vdb.63.1326819228358; Tue, 17 Jan 2012 08:53:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.90.71 with SMTP id bu7mr8840994vdb.63.1326819228270; Tue, 17 Jan 2012 08:53:48 -0800 (PST) Received: by 10.220.229.1 with HTTP; Tue, 17 Jan 2012 08:53:47 -0800 (PST) In-Reply-To: References: <20120117095552.GA6141@host2.jankratochvil.net> Date: Tue, 17 Jan 2012 16:57:00 -0000 Message-ID: Subject: Re: [patch] New set auto-load-local-gdbinit + disable it by default From: Doug Evans To: Matt Rice Cc: Jan Kratochvil , 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/msg00605.txt.bz2 On Tue, Jan 17, 2012 at 8:22 AM, Matt Rice wrote: > On Tue, Jan 17, 2012 at 1:55 AM, Jan Kratochvil > wrote: >> Still at least the setting should go in and then one can then have >> "set auto-load-local-gdbinit off" at least in ~/.gdbinit. =A0 Anyway I w= ould >> file a FESCo (Fedora Engineering Steering Committee) ticket for such "of= f" in >> /etc/gdbinit at least in distro and IMHO it needs to get approved (but m= aybe >> not, it would be another fork from upstream). > > I'm of the opinion it should just be nuked outright, and people who > want the old behaviour should add something to the effect of the > following to their ~/.gdbinit, I fear a on/off is just going to lead > to different behaviours across distros, (and still i wish the > cwd/.gdbinit wasn't hidden/too late for that.) > > py > if os.getcwd() !=3D os.environ['HOME']: > =A0gdb.execute("source .gdbinit") > end [for reference sake] That won't behave the same way as is. Find a way to do that *after* the symbols of the program have been loaded and then you've got something (hook into new objfile notifications or some such)