PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How to debug arm assemble code with evc?

I am writing assemble code for a codec module on pxa272 with evc, I have write a simple function in assemble code and complie it to get a obj file ,and add obj to my project, it works well!
But I dont know how to debug these assemble code, How can I run it step by step and watch its register in evc?

thanks in advance!
flashyou wrote:I am writing assemble code for a codec module on pxa272 with evc, I have write a simple function in assemble code and complie it to get a obj file ,and add obj to my project, it works well!
But I dont know how to debug these assemble code, How can I run it step by step and watch its register in evc?

thanks in advance!


If I remember right, EVC doesn't add debug informations into the assembler code, and doesn't allow you to step inside that code.

However, you can set a software breakpoint inside your code, that way the debugger will stop and show you the code around that location. You can even continue, trace registers and everthing. It's not as nice as line number debug info, but at least it's something.

The code for breakpoint is:

DCD 0xe6000010

Put that into the start of your function and run the exe.
Also what you can do is go to where your function gets called, switch to disassembly view, and then goto the target address and pop a breakpoint there. I dunno why the debugger can't follow the jump though, its a bit odd.
Yes , I switch to disassembly view, then I can dubug it, thanks a lot!
Yes , I switch to disassembly view, then I can dubug it, thanks a lot!