linux命令-gdb启动C/C++ 需要在编译前加上-g选项 g++ -g hello.cpp -o hello 调试文件并输出 gdb <program> <core dump file> 调试程序 gdb <program&g2021-10-01 LinuxLinux