This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .gdbini file


> Date: Sat, 11 Aug 2012 15:30:23 +0800
> From: Smith John <horserivers@gmail.com>
> 
>           I am debugging  gdb  with  itself ,  how can I use  the
> gdbinit  file  in the  gdb  source directory?

Either type the "source /path/to/.gdbinit" command at the GDB prompt,
or start GDB from the directory of that file, so that it is loaded
automatically.

> or what role does this file play on ?

It defines several defaults and commands useful for debugging GDB.
It's a text file, so you can read it and see what it does.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]