使用gdb调试的时候,出现No symbol table is loaded. Use the “file” command.错误
原因:编译时没有在 gcc 后添加 -g 选项,表示程序可以被gdb调试