【GDB】GDB调试:显示不可识别的文件格式
A程序core dump了,生成了core;
使用留存的A程序对core进行调试;
gdb A core 提示A不可识别
file A: 无异常……
[解决办法]
A被破坏了?
[解决办法]
你编译的时候,gcc 有没加 -g?
用gcc带-g选项编译源码,然后可以用gdb调试。
$gcc -g -o test test.c
$gdb test
发布时间: 2012-03-18 13:55:39 作者: rapoo
【GDB】GDB调试:显示不可识别的文件格式
A程序core dump了,生成了core;
使用留存的A程序对core进行调试;
gdb A core 提示A不可识别
file A: 无异常……
[解决办法]
A被破坏了?
[解决办法]
你编译的时候,gcc 有没加 -g?
用gcc带-g选项编译源码,然后可以用gdb调试。
$gcc -g -o test test.c
$gdb test