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

Joel Brobecker
2012-01-19T05:52:49Z

> The goal was you can do either
> echo 'set auto-load-local-gdbinit on' >>~/.gdbinit
> or
> echo 'set auto-load-local-gdbinit on' >>/etc/gdbinit
> and you get the former behavior.
>
> Did you still prefer the command you propose?

No, that would be fine too. I wasn't sure that this would work or not.

> > . To me, it is extremely important that system-gdbinit is still
> > automatically loaded.
>
> This patch/discussion affect neither /etc/gdbinit nor ~/.gdbinit in any way.

Good.

> After the discussion my current plan is:
> * change .gdbinit to PROGRAM-gdb.rc (like -gdb.py),
> rename FSF GDB src/gdb/.gdbinit to src/gdb/gdb-gdb.rc,
> delete FSF GDB src/testsuite/.gdbinit ("set height 400" only, why?)
> This will fix the annoying problems of running gdb for other programs in
> the src/gdb/ directory.

I think you can delete the .gdbinit in the testsuite directory
right now. I cannot imagine anyway would really depend on it.

The plan of making the .gdbinit file more visible seems like
a good idea.

--
Joel