gdb
编程小问号
这个作者很懒,什么都没留下…
展开
-
gdb not in executable format file format not recognized
3.4 Debugging executablesIf hell was a complicated program, you would certainly want to test and debug it before installing it on your system. In the above section, you saw how the libtool wrapper s转载 2015-11-13 13:32:21 · 13072 阅读 · 1 评论 -
CentOS开启coredump转储并生成core文件的配置
在CentOS或者suse等Linux系统中默认是关闭coredump核心转储的,也就不会产生core文件。由于在C/C++开发中会用到gdb调试,所以需要开启coredump功能。下面是具体的配置命令,可以保存为一个简单的shell脚本执行。#!/bin/bash### Filename: coredumpshell.sh### Description: enable coredump转载 2015-12-10 10:40:54 · 6821 阅读 · 0 评论 -
让CentOS默认生成core dump 当前用户
CentOS中默认设置了ulimit -c 0也就是默认程序不生成core dump,这样很麻烦,每次启动程序前都要让用户先执行一次ulimit -c ulimited,有时候用户忘记则不生成core,很不利于错误分析,所以研究了下如何让系统默认就生成core.在网上找了部分资料,看到了CentOS 5中ulimit值调整并永久生效的方法http://www.sunchis.com转载 2015-12-10 10:39:40 · 1515 阅读 · 0 评论