| |||
| Home > DS-5 Debugger Commands > DS-5 Debugger commands listed in alphabetical order > loadfile | |||
This command loads the debug information into the debugger,
an image on to the target and records the entry point address for
future use by the run and start commands. Subsequent
use of the loadfile command discards existing information
before loading the new debug information.
The PC register is not set with this command.
[loadfilefilename] [offset] [-option]
Where:
filenameSpecifies the image. If no is
specified then the executable image specified by a previous command
is loaded. You can use filenameinfo files to display information
about the current image and symbols.
offsetSpecifies the offset that is added to all addresses within the image.
optionControls how debug information is loaded:
readnowSpecifies loading all the debug information immediately. This option uses more memory and is slower to load but it enables faster debugging.
demandloadSpecifies loading the debug information when required by the debugger. This option enables a faster load and uses less memory but debugging might be slower. This is the default.
Example 60. loadfile
loadfile "myFile.axf" # Load image and debug information when required loadfile "images\myFile.axf" # Load image and debug information when required loadfile myFile.axf 0x2000 # Load image with offset 0x2000 and load debug # information when required loadfile "myFile.axf" -readnow # Load image and all debug information