2
我在Linux 64位机器上运行GDB 7.2。这一切工作正常,但现在我想尝试用GDB帮我检测内存泄漏如下面的文章中:GNU调试器(GDB)和“帮助信息泄漏”?
http://geocities.ws/murugesan/technical/gdb/memoryleak_gdb.html
有是说,一个部分:
GDB with info leaks command availability check:
# gdb -q
(gdb) help info leaks
If you find the help for that command,then GDB is capable to debug the program for memory leaks. Else the support of GDB to find the memory leaks is not available in that GDB version.
当我做“帮助信息泄露”我什么也没得到;-(
我必须做它的具体编译文件?像“文件MYPROG”,然后尽一切?
顺便说一句:你们如何找到使用GDB查找内存泄漏?
您得到的结果意味着您安装的GDB版本不支持该功能。 对于内存泄漏检测,我使用http://valgrind.org/,我发现它非常有用。 – 2011-01-25 13:41:39