This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to set a conditional breakpoint on a register value?

Using DS-5's Eclipse debugger and DSTREAM agent, I am stepping through the code running on an ARM M7 in a chip on a dev board. The build was done using optimization level -O1, so not all variables are visible in the debugger and the "current statement" flow isn't linear.

Thus, I set a breakpoint in the Disassembly view. The breakpoint is on an instruction which is a "timeout" loop, and is conditionally executed following an ITT instruction. Problem is that b/c it is an ITT block, the PC always gets to that instruction. If the loop is long (and it is), then there'll be many stops.

I am trying to make a conditional breakpoint (through "Breakpoint Properties") where the Stop Condition is based on a register's value (i.e., "r3 > 0xFA000") but the debugger give me an error that it cannot recognize "r3".

How can I set a condition based on a register value, rather than a C-level object?

Parents Reply Children