Re: [patch] New set auto-load-local-gdbinit + disable it by default

Matt Rice
2012-01-17T16:22:44Z

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