摘要: 恢复内容开始 1.gdb调试的是可执行文件,在gcc编译时加入 -g ,告诉gcc在编译时加入调试信息,这样gdb才能 调试这个被编译的文件 gcc -g tesst.c -o test 2. 命令格式:gdb 程序文件名 eg:gdb test file test gdb -q test 启动时不 阅读全文