| |||
| Home > RealView Debugger Commands > Alphabetical command reference > TRACE | |||
The TRACE command provides a quick method of enabling or disabling tracing during program execution. The tracepoints you set with this command are unconditional.
TRACE location
TRACE [{{,endpoint} | {,prompt} | {,trigger}}] location
TRACE ,range startlocation..endlocation
TRACE ,data startlocation..endlocation
where:
locationA program source location, specified symbolically or numerically.
startlocationThe start of a program source range, which must
be at a lower address than that specified by .endlocation
endlocationThe end of a program source range, which must be
at a higher address than that specified by .startlocation
The TRACE command enables you to set trace trigger, start points, and end points in the program. This enables you to switch tracing on or off at specific addresses during program execution (see Trace control during program execution ). The tracepoints you set are unconditional tracepoints. To set more complex tracepoints, use the TRACEDATAACCESS, TRACEDATAREAD, TRACEDATAWRITE, TRACEEXTCOND, TRACEINSTREXEC, or TRACEINSTRFETCH command as appropriate.
Trace operation is described in detail in the Trace chapter of the RealView Debugger v1.8 Extensions User Guide.
The endpoint, range, data, prompt,
and trigger qualifiers are used to control tracing during
program execution. With no qualifier, the TRACE command
sets a trace start point.
To use these commands, you must specify a program source location, for example a memory address within the program image, or a source module and line number.
The commands are as follows:
trace locationSet a trace start point in the program at address .location
trace ,endpoint locationSet a trace end point in the program at address .location
trace ,trigger locationSet a trace trigger in the program at address .location
trace ,prompt locationSet an unconditional tracepoint in the program at
address ,
where the type of tracepoint is selected from a list of supported
types presented in a dialog box. See the description on setting
unconditional tracepoints in the RealView Debugger v1.8
Extensions User Guide for more details.location
The prompt qualifier is not available in the headless debugger.
trace ,range startlocation..endlocationSet a trace range in the program from address to startlocation,
so that instructions at addresses between these points are traced.endlocation
trace ,data startlocation..endlocationSet a trace range in the program from address to startlocation,
so that data at addresses between these points are traced.endlocation
trace ,range ,data startlocation..endlocationSet a trace range in the program from address to startlocation,
so that instructions executed and data accessed at addresses between
these points are traced.endlocation
ARM program code often includes literal pools, constants required by the program that cannot be easily included in the instruction opcodes. Literal pool accesses shows up on data tracing, and might quickly fill up the ETM FIFO buffer quickly, depending on the program.
The following examples show how to use TRACE:
TRACE,prompt
\DHRY_1\#78Prompts you with a selection of tracepoints that you can set.
TRACE,range,data 0x80200..0x80400Set tracepoints so that data and code accesses between 0x80200-0x80400 are
traced, but not accesses at other addresses.
The following commands provide similar or related functionality: