10.3.2. Procedure

To capture trace between the image entry point and a specified location:

  1. Prepare to start the tutorial if you have not already done this.

    See Preparing to start the tracing tutorial.

  2. 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.

    Figure 10.4. Simple breakpoint set to force display of captured trace

    Simple breakpoint set to force display of captured trace

    RealView Debugger generates a BREAKINSTRUCTION CLI command, which is also displayed in the Cmd tab of the Output view:

    breakinstruction,failover \TRACE\#67:0

    Note

    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.

  3. 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.

    Figure 10.5. Captured trace shown in the Analysis window

    Captured trace shown in the Analysis window

    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
    

See also

Copyright © 2006-2009 ARM Limited. All rights reserved.ARM DUI 0322D
Non-Confidential