调试时使用指令:
gdb [your exe file name]
(gdb)core-file core
资料参考:
https://www.cnblogs.com/computer1-2-3/p/11114981.html
https://www.cnblogs.com/wsw-seu/p/10589187.html