| |||
| Home > Tracing Tutorial > Running from application reset to a breakpoint > Procedure | |||
To capture trace between the image entry point and a specified location:
Prepare to start the tutorial if you have not already done this.
At the call to Init() on line
67, double-click in the gray margin. A simple breakpoint is set
on that line. Figure 10.4 shows
an example.
RealView Debugger generates a BREAKINSTRUCTION CLI command, which is also displayed in the Cmd tab of the Output view:
breakinstruction,failover \TRACE\#67:0
The number at the end of the command is a character position, and depends on the position of the cursor when you double-clicked in the margin.
Click Run on
the Debug toolbar to start execution. The image runs until the breakpoint
is activated. The captured trace is displayed in the Trace tab
of the Analysis window. Figure 10.5 shows an example.
Messages similar to the following are also displayed in the Cmd tab of the Output view:
Stopped at 0x0000823C due to SW Instruction Breakpoint Stopped at 0x0000823C: TRACE\main Line 67:4
the following in the RealView Debugger User Guide:
the following in the RealView Debugger Command Line Reference Guide:
Chapter 2 RealView Debugger Commands for details of the BREAKINSTRUCTION command.