S5U1C17001C ManUal
EPSOn
10-1
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
10 DEBUggEr
10
Debugger
10 Debugger
This chapter describes how to use the debugger
gdb
.
10.1 features
The debugger
gdb
is software used to debug a program after loading an elf-format object file created by the linker.
This debugger has the following features and functions:
•
Can reference various types of data at one time, thanks to a multi-window facility.
•
In addition to debugging programs using the ICD Mini (S5U1C17001H) or ICD board, the debugger incorporates
a software simulator function for debugging programs on a personal computer.
•
Capable of C source and assembly source level debugging.
•
Supports C source and assembler level single-stepping functions, in addition to continuous program execution.
•
Supports hardware and software PC break functions.
•
Can measure program execution time by duration of time or number of cycles.
•
Supports a trace function that allows saving of the traced data (in simulator mode).
•
Can automatically execute commands using a command file.
•
Supports a simulated I/O function that allows Stdin/Stdout evaluation in the debugger.
•
Supports the embedded system simulator that allows evaluation of port input/output, SVD and LCD display in
the debugger.
•
Supports the flash writer function of the ICD Mini (S5U1C17001H).
•
Allows storing and re-registering the symbols registered in the Watch Window.
10.2 input/Output files
Debugger
gdb
Embedded system simulator
ES-Sim17
file.elf
file.par
file.cmd
elf object file
Command
file
Stdin file
INI file
file.log
Command
log file
file.log
Trace
log file
file.log
Stdout file
break.gdb
Breakpoint
storage file
from Linker
ICD
Parameter file
file.sa
Motorola S3
HEX file
file.xxx
gdbtk.ini
loadbreak.gdb
Load break button
command file
savebreak.gdb
Save break button
command file
break.gdb
Breakpoint
storage file
User definition button
command file
userdefine.gdb
Reset definition
command file
reset.gdb
file.c
file.s
Source file(s)
watch.gdb
Storage file for symbols
registered in Watch Window
c17_profile.prf
Profile/coverage
data file
c17_profile_path.gdb
Profile/coverage
data path file
watch.gdb
Storage file for symbols
registered in Watch Window
c17_profile_path.gdb
Storage location file for
profile/coverage data files
c17_profile.prf
Profile/coverage data file
Figure 10.2.1 Flowchart
10.2.1 input files
Parameter file
File format: Text file
File name:
<filename>
.par
Description: This file has recorded in it the contents needed to set the memory map information for the debugger.
The [Project > Properties > GNU17 Parameter Settings] dialog box of the
IDE
displayed by
selecting Project and then Properties may be used to create parameter files. For details about
parameter files, see Section 10.9, "Parameter Files".
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 ...