查看堆栈:gdb -quiet -batch -ex='thread apply all bt' -p pid
查看运行位置:gdb -quiet -batch -ex='thread apply all x $pc' -p pid