作者yungyu (cyy)
看板b95902HW
標題Re: [作業] cyy 組語作業三
時間Sat Dec 8 22:20:15 2007
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
1F:→ bluenowhere:唔,我照做到 run → connect 的部分都沒問題, 可是接 12/08 23:19
2F:推 bluenowhere:囧 上句語意模糊刪除(洗掉洗掉洗掉) 12/08 23:23
3F:→ bluenowhere:請問老師是要直接run main.cpp嗎? 因為我不知道要怎麼 12/08 23:24
4F:→ bluenowhere:調到 myfilter 的部份設 breakpoint 12/08 23:26
5F:→ bluenowhere:多謝老師 m(_ _)m 12/08 23:26
6F:→ yungyu:click on where myfilter is called at the leftmost 12/08 23:40
7F:→ yungyu:column. You see a red point and a breakpoint is set. 12/08 23:41
8F:→ yungyu:Press continue. The program will stop at myfilter. 12/08 23:42
9F:→ yungyu:click on 'Step Arm Inst' for several times and you will 12/08 23:42
10F:→ yungyu:be brought into your assembly code where you can see 12/08 23:43
11F:→ yungyu:registers and debug as usual. 12/08 23:44
12F:推 bluenowhere:喔喔,了解了,謝謝老師 12/09 00:31
13F:推 locationc:我一按run就當了T-T 12/09 00:49
14F:→ yungyu:Did you patch master.mak and standard-targets.mak? 12/09 12:31
15F:推 locationc:有更新了 不過還是會當T-T 12/09 17:59