How do I set a software breakpoint on an instruction?

If you want to set a simple software breakpoint on an instruction in your application, without any conditions attached to it, double-click in the margin of the source line (Src tab) or address (Dsm tab) in the File Editor pane of the Code window.

The symbol image\breakpt.gif to the left of the source line indicates that there is a breakpoint.

image\lamp.gifBreakpoints are set on executable instructions. If you click on a source line that is not executable, RealView Debugger sets a breakpoint on the next executable instruction and identifies the non-executable lines between with image\downbr.gif.

Execution stops at this point in the code and waits for you to take action. If you execute the program again, it continues until the next breakpoint is reached.

You can disable the breakpoint by clicking on it and selecting Disable Break from the context menu. A disabled breakpoint is indicated by the symbol image\disbreak.gif.

To set a conditional breakpoint:

  1. Select Breakpoints Conditional from the Code window Debug menu.

  2. Select one of the following options from the Conditional submenu:

Simple Break if X…

Simple Break if X N times…

Simple Break if X when Y is True…

image\lamp.gifConditional breakpoints are indicated by the symbol image\conbreak.gif.

 

image\inform.gifFor RTOS applications see Setting breakpoints in RTOS applications.

Related Topics