作者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