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

Doug Evans dje@google.com
Wed Jan 18 20:01:00 GMT 2012


On Wed, Jan 18, 2012 at 11:18 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> 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,

For reference sake, I think you mean $obj/gdb/.gdbinit.
src/gdb/.gdbinit does not exist, it's gdbinit.in.

Plus I think you need to specify the semantics more:
e.g.,
When will -gdb.rc files get loaded?
Will gdb look for -gdb.rc files precisely when it looks for -gdb.py files?
What happens if I do "gdb foo ; file bar ; file baz" ?

[and remember we'll also have to handle -gdb.scm at some point.  1/2 :-)]

>   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.
>  * deprecate .gdbinit
>  * propose less intrusive gdb-gdb.rc, this sure affects only GDB developers,
>   like do not change the outer prompt to "(top-gdb)"; I do not mind much.

Please do not remove (top-gdb).
Rename it to ^gdb, ^^gdb, etc. if you must.

[the few times you have to debug gdb under gdb under gdb is not
persuasive to change it IMO]



More information about the Gdb-patches mailing list