PocketMatrix forums

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

Debugging asm-code with evc 4.00

Is it just me, or can't you debug your own asm-code?

I have a toy project and I've written some asm-code which I've assembled using armasm. The code executes fine, but I can't trace into the code.

Even if I put a breakpoint onto the call (from a c-module), switch to the disassembly view and trace the branch-instruction the debugger just "jumps" over the call.

When I trace into disassembled functions compiled by the c-compiler it works as expected.

My asm-code looks somewhat like this. Have I done something stupid?

Code:

CODE32

EXPORT TestFunc

AREA |.text|, CODE, ARM


TestFunc PROC

; do stuff

mov pc, lr
ENDP

END


The code gets compiled using:

armasm -CPU XSCALE -32 blah.asm blah.obj
Nope, nothing stupid there.

I knew this request had turned up here before:

http://www.pocketmatrix.com/forums/view ... m+debugger

leads to

http://www.pocketmatrix.com/forums/view ... +debugging

Personally I just use my head as the debugger. :mrgreen:
bitbank · 09 Dec 2004, 00:10 UTC — new info
I've played with this a bit and found the following:

You can't step-into asm functions (F11), but you
can set breakpoints within the ASM source code as long as it is defined inside a "PROC". Code which lies outside of procs cannot have a breakpoint.

This really isn't too bad a limitation. Before I put my code inside PROCs I was thinking that there was no source level debugging at all.


Larry B.
You get source-level debugging that way? I can break, but I'm only able to step through my code in the disassembler view..