10.8.2. Procedure

To exclude a function from being traced:

  1. Remove the trace range you set previously:

    1. Select View → Break/Tracepoints from the Code window main menu to open the Break/Tracepoints view. Figure 10.34 shows an example:

      Figure 10.34. Break/Tracepoints view showing a tracepoint

      Break/Tracepoints view showing a tracepoint

    2. Right-click on the tracepoint to display the context menu.

    3. Select Delete from the context menu. The tracepoint is deleted.

    4. Close the Break/Tracepoints view.

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

  3. Set a Trace Start Point at the address corresponding to while(1):

    1. In the Code window, click the trace.c tab.

    2. Right-click on line 71 in the trace.c tab to display the context menu.

    3. Select Locate Disassembly from the context menu to open the Prompt dialog box.

    4. The Disassembly tab is displayed, and the corresponding address is indicated by a hollow blue arrow. Figure 10.28 shows an example:

      Figure 10.35. Disassembly view

      Disassembly view

    5. Right-click in the margin at the address corresponding to while(1) to display the context menu.

    6. Select Insert Tracepoint... from the context menu to open the New Tracepoint dialog box.

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

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

      Figure 10.36. 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, for example:

      trace,prompt 0x00008248

  4. Set a Start of Excluded Trace Range for instructions and data at line 143 in the source:

    1. In the Code window, click the trace.c tab in the Code window.

    2. Scroll down until line 143 is visible.

    3. Right-click in the margin at line 143 to display the context menu.

    4. Select Insert Tracepoint... from the context menu to open the New Tracepoint dialog box.

    5. Select Start of Excluded Trace Range (Instruction and Data) from the list of tracepoint types.

    6. Click OK. The dialog box closes, and a Start of Excluded Trace Range tracepoint is set as indicated by the green arrow . Figure 10.37 shows an example:

      Figure 10.37. Start of Excluded Trace Range set at line 142

      Start of Excluded Trace Range set at line 142

  5. Set an End of Excluded Trace Range for instructions and data at line 150 in the source:

    1. Scroll down until line 150 is visible.

    2. Right-click in the margin at line 150 to display the context menu.

    3. Select Insert Tracepoint... from the context menu to open the New Tracepoint dialog box.

    4. Select End of Excluded Trace Range (Instruction and Data) from the list of tracepoint types.

      Note

      This is the only trace range option available, because you must complete the current trace range before another trace range can be set.

    5. Click OK. The dialog box closes, and the End of Excluded Trace Range tracepoint is set as indicated by the green arrow . Figure 10.38 shows an example:

      Figure 10.38. End of Excluded Trace Range set at line 151

      End of Excluded Trace Range set at line 151

  6. Click Run on the Debug toolbar to start execution.

  7. After a short time, click Stop on the Debug toolbar to stop execution. The captured trace is displayed in the Trace tab of the Analysis window. Figure 10.39 shows an example:

    Figure 10.39. Captured trace in Analysis window

    Captured trace in Analysis window

See also

Copyright © 2006-2011 ARM. All rights reserved.ARM DUI 0322G
Non-ConfidentialID052111