linux 程序自动打印crash位置

启动脚本增加:
1.ulimit -c unlimited
2. echo "test_core_dump">/proc/sys/kernel/core_pattern
3. gdb test_app test_core_dump 0<gdb_sh

gdb_sh内容:exit

猜你喜欢

转载自blog.csdn.net/jingzitakk66/article/details/89708147