摘要: 在gdb 7.0版本之后,对于基础数据结构,如vector<int> 如果在gdb中调用p my_vect,得到std::vector of length 3, capacity 4 = {10, 20, 30}但对于自定义数据结构支持不好,此时可以下载一个配置文件http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.03.txt添加到gdb的配置中。catdbinit_stl_views-1.03.txt >>~/.gdbinit在调试的时候,可以通过pstring,pvector打印出STL的数据结构。比较方 阅读全文
posted @ 2013-04-16 19:41 westfly 阅读(1176) 评论(0) 推荐(0) 编辑