| |||
| Home > Tracing Tutorial > Using a trace start point > Procedure | |||
To capture trace from a specific location:
Reload the image:
Right-click
on the Load Image+Symbols entry in the Process
Control view to display the context menu.
Select Reload from the context
menu. The image is reloaded and the PC is reset to the image entry
point (0x8000).
The reload maintains the breakpoints that were previously set at line 67 and line 80.
Remove the first breakpoint:
Click the trace.c tab to display the source code.
Right-click on the red breakpoint icon at line 67 to display the context menu.
Select Remove Breakpoint from the context menu. The breakpoint is removed.
Set a Trace Start Point at line 67:
Right-click on the gray margin at line 67 to display the context menu.
Select Insert Tracepoint... from the context menu to display the New Tracepoint dialog box.
Select Trace Start Point from the list of tracepoint types.
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.
RealView Debugger generates a TRACE CLI command, which is also displayed in the Cmd tab of the Output view:
trace,prompt \TRACE\#67:0
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.
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.
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 TRACE command.