10.5.2. Procedure

To capture trace from a specific location:

  1. Reload the image:

    1. Right-click on the Load Image+Symbols entry in the Process Control view to display the context menu.

    2. Select Reload from the context menu. The image is reloaded and the PC is reset to the image entry point (0x8000).

    Note

    The reload maintains the breakpoints that were previously set at line 67 and line 80.

  2. Remove the first breakpoint:

    1. Click the trace.c tab to display the source code.

    2. Right-click on the red breakpoint icon at line 67 to display the context menu.

    3. Select Remove Breakpoint from the context menu. The breakpoint is removed.

  3. Set a Trace Start Point at line 67:

    1. Right-click on the gray margin at line 67 to display the context menu.

    2. Select Insert Tracepoint... from the context menu to display the New Tracepoint dialog box.

    3. Select Trace Start Point from the list of tracepoint types.

    4. Click OK. The dialog box closes, and the Trace Start Point is set as indicated by the green arrow . Figure 10.14 shows an example.

      Figure 10.14. Trace Start Point set

      Trace Start Point set

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

      trace,prompt \TRACE\#67:0

      Note

      The number at the end of the command is a character position, and depends on the position of the mouse pointer when you displayed the context menu.

  4. Click Run on the Debug toolbar to start execution. The image runs until the breakpoint at line 80 is activated. Messages similar to the following are also displayed in the Cmd tab of the Output view:

    Stopped at 0x00008278 due to SW Instruction Breakpoint
    Stopped at 0x00008278: TRACE\main Line 80:8
    

    The captured trace is displayed in the Trace tab of the Analysis window. Figure 10.15 shows an example.

    Figure 10.15. Trace capture from a Trace Start Point

    Trace capture from a Trace Start Point

See also

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