| |||
| Home > DS-5 Debugger Commands > DS-5 Debugger commands listed in alphabetical order > add-symbol-file | |||
This command loads additional debug information into the debugger.
add-symbol-file filename [offset] [-option] [-s section address]...
Where:
filenameSpecifies the image or shared library.
offsetSpecifies the offset that is added to all addresses
within the image. If is
not specified then the default for:offset
An image is zero.
A shared library is the load address of the library. If the application has not currently loaded the specified library then the request is pended until the library is loaded and the offset can be determined.
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.
sSpecifies the loading symbols from relocatable object files.
sectionSpecifies the name of a section in a relocatable file.
addressSpecifies the address of the section. This can be either an address or an expression that evaluates to an address.
You can use the info files command to display
information about the loaded files including the address range for
each section.
Example 5. add-symbol-file
add-symbol-file myFile.axf # Load symbols at entry point+0x0000 add-symbol-file myFile.axf 0x2000 # Load symbols at entry point+0x2000 add-symbol-file relocate.o -s .text 0x1000 -s .data 0x2000 # Load symbols from relocate.o and resolve # references to .text or .data sections