在编译的时候要加上“-g”选项才可以调试,例如:
gcc -g -o prog main.c mstore.c
参考链接:
GDB官方手册:Top (Debugging with GDB) (sourceware.org)
标签:Debugging,gcc,mstore,sourceware,GDB,调试 From: https://www.cnblogs.com/jixuxiangqian/p/17471172.html
在编译的时候要加上“-g”选项才可以调试,例如:
gcc -g -o prog main.c mstore.c
参考链接:
GDB官方手册:Top (Debugging with GDB) (sourceware.org)
标签:Debugging,gcc,mstore,sourceware,GDB,调试 From: https://www.cnblogs.com/jixuxiangqian/p/17471172.html