前提:
打开core文件:
1、/proc/sys/kernel/core_uses_pid
2、/proc/sys/kernel/core_pattern
GDB相关:
1、gdb ./a.out core_file
2、gdb ./a.out
set args XXX
run