摘要:
1. 下载 http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.03.txt 2. #cat dbinit_stl_views-1.03.txt >> ~/.gdbinit 3. 若正处于gdb中,运行命令: (gdb) source ~/.gdbinit 4. 例如,如下代码: bugging.cpp # include < vector > using namespace std ; int main( ) { vector < int > vec; vec. push_back( 2) ; 阅读全文