Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS: CCS LoadSymbolWithOffset

$
0
0

Tool/software: Code Composer Studio

Hello,

loadWithOffset

public void loadWithOffset(java.lang.String fileName,
                           long codeStart,
                           long dataStart)
                    throws ScriptingException
Loads the specified program's symbols into the debugger's symbol manager. Any existing symbols on the target will be unloaded. Symbols associated with the program's code sections will be added starting at codeStart while the program's data sections will be added starting at dataStart.

Parameters:
fileName - (String) the name of the file to load symbols from. Relative paths are permitted, use ScripingEnvironment.setCurrentDirectory(String) to change the current working directory.
codeStart - (long) the starting address to start adding the program's symbols
dataStart - (long) the starting address to start adding the data's symbols
Throws:
ScriptingException

loadWithRelativeOffset

public void loadWithRelativeOffset(java.lang.String fileName,
                                   long codeOffset,
                                   long dataOffset)
                            throws ScriptingException
Adds the specified program's symbols into the debugger's symbol manager. Any existing symbols on the target will be unloaded. Symbols associated with the program's code sections will be moved by codeOffset while the program's data sections will be moved by dataOffset.

Parameters:
fileName - (String) the name of the file to load symbols from. Relative paths are permitted, use ScripingEnvironment.setCurrentDirectory(String) to change the current working directory.
codeOffset - (long) the offset to move the program's code section
dataOffset - (long) the offset to move the program's data section
Throws:
ScriptingException

Can we concrete examples for using these two loading functions? Does the "address" and "offset" refer to in the .elf file or in the physical memory of the processor? And there is a lack of "length" specification like fread, so how many symbols do we load, or all the way down to the end of the ".out" file? There is a lack of fine-grain control here.

Dave


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>