gdb调试,查看stl容器信息,string,vector等

来源:互联网 发布:java中集合的由来 编辑:程序博客网 时间:2024/05/17 09:47

下载

http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.03.txt


在该文件中有使用说明:

#   This file should be "included" in .gdbinit as following:#   source stl-views.gdb or just paste it into your .gdbinit file

使用如下:

先运行gdb,再gdb内使用source命令,加载上面下载的脚本;


也可以将上面下载的内容复制到你的 ~/.gdbinit文件中,这样运行gdb自动加载,不用使用source命令