S5U1C17001C ManUal
EPSOn
10-115
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
10 DEBUggEr
10
Debugger
10.7.10 file loading Commands
file
(load debugging information)
[ICD Mini / SIM]
Operation
Loads only debugging information from elf format object files.
Use the
load
command to load necessary object code.
Format
file
Filename
Filename
: Name of object file in elf format to be debugged (with path also specifiable)
Usage example
(gdb)
file sample.elf
Debugging information is loaded from
sample.elf
in the current directory.
GUI
You can also choose [Open...] from the [File] menu in the [Source] window and open an elf format file from the
file select dialog box that appears. Selecting a file executes the
file
command. [Source] window display is
updated when the source file indicated in loaded debugging information is loaded.
Notes
•
The
file
command only loads debugging information; it does not load object code. Therefore, except when
the program is written to target ROM, you cannot start debugging by simply executing the
file
command.
•
The
file
command must be executed before the
target
and
load
commands. The following shows the
basic sequence of command execution:
(gdb) c17 rpf sample.par
(sets map information.)
(gdb)
file sample.elf
(this command)
(gdb) target sim
(connects the target.)
(gdb) load
(loads the program.)
(gdb) c17 rst
(resets the CPU.)
•
Unless executed for elf object files in executable format (generated by the linker), the
file
command results
in an error and no files can be loaded. If the loaded file contains no debugging information, an error also
results.
•
The elf format object files contain information on source files (including the directory structure). For this
reason, unless the source files exist in a specified directory in the object file as viewed from the current
directory, the source files cannot be loaded. Basically, the series of operations from compiling to debugging
should be performed in the same directory.
•
Once the
file
command is executed, operation cannot be aborted until the debugger finishes loading the
file.
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 ...