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

Joel Brobecker
2012-01-17T13:40:00Z

> I think this is a draconian measure. It prevents me from having a
> .gdbinit file loaded automatically as appropriate for a program I'm
> debugging. Prominent examples include GDB itself and Emacs, which
> both come with a .gdbinit file that makes debugging much easier.

I tend to agree as well, although I would not object as strongly.

If we do move forward on that change, I think we should do it more
gradually:
1. We start by emitting a warning when seeing a local .gdbinit file,
but otherwise read it.
2. We stop reading them once a release with the warning is out.

> > And "gdb -x ./.gdbinit" is a pretty simple way to do what one wants to do.
>
> "gdb -x .gdbinit" is much longer than just "gdb". It could really
> make a difference in some special use cases, e.g. when you need to
> attach to a failing process very quickly. It is also easy to forget.

I also agree it's (too) easy to forget.

--
Joel