这是一个似乎微不足道的问题,但我找不到一个简单的方法来实现这一目标.
我的.gdbinit文件定义在与gdb.exe存在的目录相同的目录中 - 这是在我的编译器的bin目录中.但是,当我运行gdb时,我得到了这个:
GNU gdb (GDB) 7.5.50.20120804-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
warning: File "g:\Mingw32-4.6.3\bin\.gdbinit" auto-loading has been declined by
your `auto-load safe-path' …Run Code Online (Sandbox Code Playgroud)