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
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> After the discussion my current plan is:
Jan> * change .gdbinit to PROGRAM-gdb.rc (like -gdb.py),
Jan> rename FSF GDB src/gdb/.gdbinit to src/gdb/gdb-gdb.rc,
Jan> delete FSF GDB src/testsuite/.gdbinit ("set height 400" only, why?)
Jan> This will fix the annoying problems of running gdb for other programs in
Jan> the src/gdb/ directory.
Jan> * deprecate .gdbinit
Jan> * propose less intrusive gdb-gdb.rc, this sure affects only GDB developers,
Jan> like do not change the outer prompt to "(top-gdb)"; I do not mind much.
Jan> * in a second patch series deal with security, propose some "-safe" option,
Jan> PROGRAM-gdb.rc is more visible than .gdbinit, it has the same security
Jan> issue like PROGRAM-gdb.py and we have to deal with -gdb.py already anyway.
Would you mind very much separating the different patches?
I am sold on the security changes, but I'm not as convinced about the
other stuff. In particular, as Doug points out, the PROGRAM-gdb.rc
thing needs design work; but there doesn't seem to be a technical need
to link this to a security improvement.
Tom