推荐一篇详细的gdb文章:http://witmax.cn/gdb-usage.html1. gdb 使用简介1> 编译程序时需要加上-g,之后才能用gdb进行调试:gcc -g main.c -o test_exe 2> 直接使用gdb调试可执行文件: gdb test_exe 3> 然后进入gd Read More
posted @ 2019-02-22 18:41
靖意风
Views(394)
Comments(0)
Diggs(0)
1. 产生段错误时,使用gdb分析core文件,查找原因 1>安装apport(automatically generate crash reports for debugging)2>修改/etc/security/limits.conf文件,使允许core dump,或者用ulimit -c u Read More
posted @ 2019-02-22 18:40
靖意风
Views(4474)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号