This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Add support for --with-system-gdbinit
On Mon, Jan 19, 2009 at 03:10:53PM +0100, Jerome Guitton wrote:
> Maybe we can take this opportunity to print the list of gdbinit loaded in
> GDB at startup. Something like:
>
> [...]
> --xdb XDB compatibility mode.
>
> At startup, GDB reads the following init files and executes their commands:
> * system-wide init file: /etc/gdb/gdbinit
> * user-specific init file: /homes/guitton/.gdbinit
> * local init file: /homes/guitton/work/.gdbinit
>
> For more information, type "help" from within GDB, or consult the
> GDB manual (available as on-line info or a printed manual).
> [...]
>
>
> Would that make sense?
It does to me - although I suggest using a relative path for that last
item (./.gdbinit), to make it clear that it will change if you cd.
--
Daniel Jacobowitz
CodeSourcery