10.7.10 file loading Commands
file
(load debugging information)
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
(gdb) target sim
(gdb) load
(gdb) c17 rst
• 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.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
(this command)
(connects the target.)
(loads the program.)
(resets the CPU.)
EPSOn
10 DEBUggEr
[ICD Mini / SIM]
10
Debugger
10-115
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?
Questions and answers