
linux 调试
elbort
这个作者很懒,什么都没留下…
展开
-
GDB 多线程环境调试
出处:http://www.ibm.com/developerworks/cn/linux/l-pow-debug/ 感谢原作者 多线程环境 在 GDB 中有一些特殊的命令可以用于多线程应用程序的调试。下面这个例子给出了一个死锁情况,并介绍了如何使用这些命令来检查多线程应用程序中的问题: 多线程例子 #include #inclu转载 2012-05-11 11:23:22 · 1157 阅读 · 0 评论 -
Linux core 文件介绍
Linux core 文件介绍 1. core文件的简单介绍 在一个程序崩溃时,它一般会在指定目录下生成一个core文件。core文件仅仅是一个内存映象(同时加上调试信息),主要是用来调试的。 2. 开启或关闭core文件的生成 用以下命令来阻止系统生成core文件: ulimit -c 0 下面的命令可以检查生成core文件的选项是否打开: ulimit -a 该命令将显示转载 2012-05-17 13:28:01 · 405 阅读 · 0 评论 -
valgrind 调试
调不尽的内存泄露,用不完的Valgrind (一个介绍程序调试的精彩讲解:http://www.ibm.com/developerworks/cn/linux/l-pow-debug/) Valgrind 介绍 Valgrind是一个GPL的软件,用于Linux(For x86, amd64 and ppc32)程序的内存调试和代码剖析。你可以在它的环境中运行你的程序来监视内存的使转载 2012-05-23 08:54:51 · 555 阅读 · 0 评论 -
利用efence调试内存泄漏
1.What is efence It attempts to use the virtual memory facilities of Linux to protect the memory used by malloc and free to halt the program at the point of memory corruption. 2. How to原创 2013-01-30 17:04:40 · 2573 阅读 · 0 评论 -
Gnu gprof进行Linux平台下的程序分析
【转】使用Gnu gprof进行Linux平台下的程序分析 Gprof 简介: Gprof功能:打印出程序运行中各个函数消耗的时间,可以帮助程序员找出众多函数中耗时最多的函数。产生程序运行时候的函数调用关系,包括调用次数,可以帮助程序员分析程序的运行流程。 有 了函数的调用关系,这会让开发人员大大提高工作效率,不用费心地去一点点找出程序的运行流程,这对小程序来说可能效果不是很明显,但对于有几转载 2013-01-30 14:48:16 · 653 阅读 · 0 评论 -
5 simple ways to troubleshoot using Strace
转载:http://www.hokstad.com/5-simple-ways-to-troubleshoot-using-strace I keep being surprised how few people are aware of all the things they can use strace for. It's always one of the first debug tool转载 2013-05-29 16:37:12 · 858 阅读 · 0 评论 -
Linux core dump
调试技术: Linux core dump file, like windows CreateMiniDump from: http://blog.youkuaiyun.com/yangzhu1982/archive/2011/04/13/6321093.aspx 调试技术: Linux core d转载 2014-02-10 11:04:41 · 810 阅读 · 0 评论