This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] New set auto-load-local-gdbinit + disable it by default
- From: Matt Rice <ratmice at gmail dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 17 Jan 2012 08:22:27 -0800
- Subject: Re: [patch] New set auto-load-local-gdbinit + disable it by default
- References: <20120117095552.GA6141@host2.jankratochvil.net>
On Tue, Jan 17, 2012 at 1:55 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> 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. ? Anyway I would
> file a FESCo (Fedora Engineering Steering Committee) ticket for such "off" in
> /etc/gdbinit at least in distro and IMHO it needs to get approved (but maybe
> 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() != os.environ['HOME']:
gdb.execute("source .gdbinit")
end