2015-11-10 34 views

回答

1

GDB幫助輸出告訴您它看起來在啓動時:

$ gdb --help | tail 
        Set GDB's data-directory to DIR. 

At startup, GDB reads the following init files and executes their commands: 
    * user-specific init file: /home/davidw/.gdbinit 
    * local init file (see also 'set auto-load local-gdbinit'): ./.gdbinit 

For more information, type "help" from within GDB, or consult the 
GDB manual (available as on-line info or a printed manual). 
Report bugs to "<http://www.gnu.org/software/gdb/bugs/>". 

您也可以從GDB中獲得更多一點的信息與命令 show autoload

又見在線手冊here

不是真的有關這個問題,但我花時間尋找到這樣做的原因是,與Cygwin的,我.gdbinit seemd是越來越忽略。原來是我的.gdbinit中的命令是ignored

+0

BTW Cygwin的使用有它自己的.gdbinit中調用'gdb.ini'如果我'〜觸摸/ gdb.ini'那麼GDB將不再啓動。 – DavidW

相關問題