如何使用gdb進(jìn)行調(diào)試?我試圖在我的程序中添加一個斷點(diǎn)b {line number}但我總有個錯誤說:No symbol table is loaded. Use the "file" command.我該怎么辦?
3 回答

當(dāng)年話下
TA貢獻(xiàn)1890條經(jīng)驗(yàn) 獲得超9個贊
gdb ./myprogram
b myfile.cpp:25b some_function

慕妹3242003
TA貢獻(xiàn)1824條經(jīng)驗(yàn) 獲得超6個贊
$ gdb a.out
(gdb) file a.out
- 3 回答
- 0 關(guān)注
- 516 瀏覽
添加回答
舉報
0/150
提交
取消