To trace code execution before and after entry into a function
To trace code execution before and after entry
into a function
1 Specify the trigger condition.
Trace Trigger Address Is function_name <Tab> Status Is
FnCde Prog PosnTrig Center
2 Run the program.
3 When the trace is completed (the command line will contain the message
TRC:Cmplt ), press CTRL C to halt program execution and enter command
mode.
4 Display the trace data.
To trace data written to a variable
1 Define trace event 1 to be a write access to the range of addresses
corresponding to the variable.
Trace Event Specify 1 <Tab> Address Is
& variable ..+sizeof( variable )-1 <Tab> Status Is Write
By using the sizeof operator, we can specify an address range the size of the
variable to ensure that we capture all bytes of variable .
2 Assign variable as the trigger and storage qualification terms.
Trace Trigger Event 1
Trace StoreQual Event 1
Chapter 6: Making Trace Measurements
199