看板 b95902HW 關於我們 聯絡資訊
Project -> Execute Target -> Build + Debug It will load your program into insight, a graphic frontend for gdb. Press Run, connect to simulator if asked. Then, you can step, set breakpoint and watch registers (select view -> registers). Hope that it helps. Yung-Yu ※ 引述《bluenowhere (生技之夜4/6視小)》之銘言: : 請問要怎麼看到程式執行每一行後 register 內的值 : (簡單的說就是要怎麼 debug 呀 |||Orz) : 我知道開HAM按F7之後會出現VBA的視窗 : 然後選裡面的 Tools → Disassemble 可以看見指令和 register 的值 : 但我好像沒辦法控制它先執行到 myfilter 開始的部份 : 然後開始看 register 的值debug : 請問有沒有人知道這種情況要怎麼處理 : 或是有沒有其他 debug 的方法 : 多謝 m(_ _)m -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.49
bluenowhere:唔,我照做到 run → connect 的部分都沒問題, 可是接 12/08 23:19
bluenowhere:囧 上句語意模糊刪除(洗掉洗掉洗掉) 12/08 23:23
bluenowhere:請問老師是要直接run main.cpp嗎? 因為我不知道要怎麼 12/08 23:24
bluenowhere:調到 myfilter 的部份設 breakpoint 12/08 23:26
bluenowhere:多謝老師 m(_ _)m 12/08 23:26
yungyu:click on where myfilter is called at the leftmost 12/08 23:40
yungyu:column. You see a red point and a breakpoint is set. 12/08 23:41
yungyu:Press continue. The program will stop at myfilter. 12/08 23:42
yungyu:click on 'Step Arm Inst' for several times and you will 12/08 23:42
yungyu:be brought into your assembly code where you can see 12/08 23:43
yungyu:registers and debug as usual. 12/08 23:44
bluenowhere:喔喔,了解了,謝謝老師 12/09 00:31
locationc:我一按run就當了T-T 12/09 00:49
yungyu:Did you patch master.mak and standard-targets.mak? 12/09 12:31
locationc:有更新了 不過還是會當T-T 12/09 17:59