10-122
EPSOn
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
10 DEBUggEr
10.7.13 Trace Command
c17 tm
(set trace mode)
[SIM]
Operation
Sets the conditions below.
Turning trace on/off
When you turn trace on, trace information is sampled along with program execution.
Trace information items to be displayed
You can choose the items in the trace information to be displayed.
Output destination of trace information
You can choose a window or file as the destination at which sampled trace information is output. Choosing a
window displays trace information in the [Trace] window. Choosing a file requires that you specify a file name.
Format
c17 tm on
Mode
[
Filename
]
(sets trace mode.)
c17 tm off
(clears trace mode.)
Mode
:
Trace mode (contents of trace information displayed)
Specify within the range from 0x00 to 0xff. Set the bit corresponding to the item to be displayed to 1.
Bit 0 Trace number
Bit 1 Clock number
Bit 2 PC value and instruction code
Bit 3 Bus information (address, R/W and access size, data)
Bit 4 Register values (R0–R7, SP)
Bit 5 PSR value (IE, IL, CVZN)
Bit 6 Disassembled contents and source code
Bit 7 Cumulative number of clocks (number of clocks spent by each instruction when set to 0)
Filename
: Name of file to which trace information is output
When a file name is specified, sampled trace information is output to the specified file, and not
displayed in a window. When this entry is omitted, trace information is displayed in the [Trace]
window, and not output to a file.
Usage example
n
Example 1
(gdb)
c17 tm on 0xff trace.log
This example sets the trace mode for displaying all information and specifies the
trace.log
file in which
to save the information. Running the program after setting these options outputs trace information to a file for
each instruction executed. If a file name is omitted, the information is displayed in the [Trace] window.
n
Example 2
(gdb)
c17 tm off
Trace mode is turned off. From this time on, no trace information is sampled even when running the program.
Summary of Contents for S5U1C17001C
Page 6: ......
Page 17: ...1 General S5U1C17001C Manual 1 General ...
Page 18: ......
Page 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Page 22: ......
Page 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Page 30: ......
Page 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Page 104: ......
Page 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Page 122: ......
Page 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Page 366: ......
Page 385: ...7 Library S5U1C17001C Manual 7 library ...
Page 386: ......
Page 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Page 406: ......
Page 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Page 440: ......
Page 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Page 450: ......
Page 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Page 627: ......
Page 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...