之前利用gdb查看内存数据,定位到了一个内存泄露的问题,但是没有很好的将一些当时用到的资料收集起来,这次汇集下以便以后参考:
1:Debugging with gdb
http://sourceware.org/gdb/download/onlinedocs/gdb/index.html
2:GNU GDB Debugger Command Cheat Sheet
http://www.yolinux.com/TUTORIALS/GDB-Commands.html
3:GDB调试器
http://www.ruchee.com/code/linux/gnu/gdb.html
4:linux gdb
http://blog.csdn.net/lw1a2/article/details/5598006
gdb转储内存使用到的命令参考自:
http://sourceware.org/gdb/onlinedocs/gdb/Logging-Output.html
set logging on
Enable logging. set logging off
Disable logging. set logging file
fileChange the name of the current logfile. The default logfile is
. set logging overwrite [on|off]
By default, gdb will append to the logfile. Set overwrite
if you want set logging on
to overwrite the logfile instead. set logging redirect [on|off]
By default, gdb output will go to both the terminal and the logfile. Set redirect
if you want output to go only to the log file. show logging
Show the current values of the logging settings.
gdb内存查看参考自:
1: Examining Memory
http://sourceware.org/gdb/onlinedocs/gdb/Memory.html#Memory
2:Output Formats
http://sourceware.org/gdb/onlinedocs/gdb/Output-Formats.html#Output-Formats
简单的gdb内存转储的例子如下:
>> set logging on >> x/[n][format] startHexAddress
结果是生成一个gdb.txt的默认文件。
n是指需要从起始地址转储多少单位内存数据,例如假设需要查看的数据是4*1024 byte,然后按照byte的大小来查看, 则n需要设置为4*1024
相关推荐
GDB调试GDB调试GDB调试GDB调试GDB调试 GDB调试GDB调试GDB调试GDB调试GDB调试
用GDB调试程序 用GDB调试程序 用GDB调试程序 用GDB调试程序 用GDB调试程序 用GDB调试程序
GDB调试精粹及使用实例GDB调试精粹及使用实例GDB调试精粹及使用实例GDB调试精粹及使用实例GDB调试精粹及使用实例GDB调试精粹及使用实例GDB调试精粹及使用实例GDB调试精粹及使用实例GDB调试精粹及使用实例GDB调试精粹...
陈浩-用GDB调试程序(整理有书签).pdf+守望的个人博客-GDB调试指南(整理有书签).pdf
GDB调试程序[陈皓] GDB调试工具指南 两个pdf文件
gdb调试器的使用gdb调试器的使用gdb调试器的使用gdb调试器的使用gdb调试器的使用
是学习嵌入式的很好的资料哦!里面详细介绍了怎样用gdb调试程序,是嵌入式程序调试入门必备的资料!
讲述常用gdb命令,以及讲述如何使用gdb调试程序崩溃后产生的core dump文件,让您在linux下开发更轻松
用GDB调试程序 用GDB调试程序 用GDB调试程序 用GDB调试程序 用GDB调试程序
非常详细的介绍 Linux下gdb调试工具指南
网卡相关和gdb调试
GDB调试中文手册。GDB调试命令详述,完整的中文手册。
C++的GDB调试命令大全,方便GDB调试使用
gdb调试命令及实例精选gdb调试命令及实例精选gdb调试命令及实例精选
使用GDB调试,英文版。对于从事 Linux C/C++ 后台开发的读者来说,GDB 调试是需要熟练掌握的一项技能
GDB调试工具指南.pdf GDB调试工具指南.pdf
GDB调试应用指南Guide
GDB 是GNU开源组织发布的一个强大的UNIX下的程序调试工具。或许,各位比较喜欢那种图形界面方式的,像VC、BCB等IDE的调试,但如果你是在 UNIX平台下做软件,你会发现GDB这个调试工具有比VC、BCB的图形化调试器更强大...
gdb调试命令大全