loadfile

This command loads 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.

Note

The PC register is not set with this command.

Show/hideSyntax

loadfile [filename] [offset] [-option]

Where:

filename

Specifies the image. If no filename is specified then the executable image specified by a previous command is loaded. You can use info files to display information about the current image and symbols.

offset

Specifies the offset that is added to all addresses within the image.

option

Controls how debug information is loaded:

readnow

Specifies loading all debug information immediately. This option uses more memory and is slower to load but it enables faster debugging.

demandload

Specifies loading 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.

Show/hideExample

Example 65. 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

Show/hideSee also

Copyright © 2010 ARM. All rights reserved.ARM DUI 0452B
Non-ConfidentialID100410