编写Makefile 携带 -g 参数
gdb set sysroot ./ file xxx core-file xxx bt
gdb
set sysroot ./
file xxx
core-file xxx
bt