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
Reset definition
User definition button
command file
reset.gdb
INI file
Stdin file
gdbtk.ini
file.xxx
ICD
break.gdb
file.log
Breakpoint
Stdout file
storage file
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".
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
from Linker
Save break button
command file
command file
userdefine.gdb
savebreak.gdb
Command
Source file(s)
file
elf object file
file.c
file.cmd
file.elf
file.s
Debugger
gdb
file.log
file.log
Command
Trace
Storage file for symbols
log file
log file
registered in Watch Window
Figure 10.2.1 Flowchart
EPSOn
Load break button
Breakpoint
command file
storage file
loadbreak.gdb
break.gdb
Motorola S3
Profile/coverage
Parameter file
HEX file
data file
file.par
file.sa
c17_profile.prf
Embedded system simulator
ES-Sim17
watch.gdb
c17_profile_path.gdb
Storage location file for
profile/coverage data files
10 DEBUggEr
Storage file for symbols
registered in Watch Window
watch.gdb
Profile/coverage
data path file
c17_profile_path.gdb
c17_profile.prf
Profile/coverage data file
10-1
10
Debugger
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?
Questions and answers