ABI to use, or empty string if not set.
Address of (file, line, function) where file/line or function may be 0.
List of all symtable ABIs.
Architecture the symbols are for, or the empty string if not set.
True if symtable is compatible with architecture given as index
(file, variable, type, offset) Variable at given address
If set, the current source position is displayed after each command.
Whether to load debug info right away, as opposed to only when needed.
Address, offset to first code line, and size of a function. Index is (function, file), where file can be Nil.
((function, file, start, end)*) List of functions and where in memory they are located
(file, line, function) Source code position at given address. The file is a complete path to the file on the host.
(file, address) Set to load symbols from file at address
list of local variable and function parameter names; index is program location
Set to (skip, buffers flat) for starting self-profiling, 0 for stopping and nonzero for continuing after stopping. skip is the number of stack frames to skip from the call root, and buffers is the number of call buffers to use. A non-zero flat value enables flat profiling.
(Internal use only) Set to the file name for dumping flat profile data.
(function-name, cut-off, dot-file, page-size landscape) List the call path for function-name and the accumulated time spent in each function called from this path. A value if NIL will list all call paths in Simics. To skip rarely used paths, specify a cut-off limit in cut-off in percent. If dot-file is non-NIL, the output is written to a file in the dot graph language. The dot file is generated for a page size given by the page-size field which is one of 1, 2, 3 or 4 for A1, A2, A3 and A4.
(Internal use only) Print some self-profiling info. Does not return anything interesting.
(Internal use only) (n, function-name, accum, file) List the n most executed functions whose name begin with fun-name and reside in file. If accum is nonzero, list in order of accumulated times (including time spent in callees)
(Internal use only)Get the time spent in different functions. Each entry in the returned list is a list of the form [function, file name, ticks, accumulated ticks]. Self-profiling must have been started an stopped (using selfprof-start and selfprof-stop before this attribute is read. Failure to do so will result in nil being returned. If self-profiling was started in flat mode nil is returned.
Trigger a selfprof tick.
(all, verbose) Set to load Simics own symbols into this symtable object. Set all to 0 to just load symbols, 1 to load debug info as well. If the verbose flag is non-zero, information about loaded symbol files is printed.
(file, line, function) Source code position at given address
((file, line), ...) All source lines corresponding to a given instruction
set source search path for debug info
((file, address), ...) Loaded symbol tables
((symbol-name, info, value, size), ...) Specify a list of symbols to be entered under the indexed name. info is an integer as follows: local=0, global=1, weak=2; variable=0, function=16.
Value of symbol (index), or Nil if no such symbol exists.
(Internal use only)Get total number of walks (perfanalyze/time_handler events)
|abi||set ABI to use|
|host-source-at||return the source code position for a given address|
|list||list source and/or disassemble|
|load-symbols||load symbols from file|
|plain-symbols||read raw symbols in nm format|
|pos||address of line or function|
|source-path||set source search path for debug info|
|whereis||find symbol by address|
line or file:line --- list from given line
function or file:function --- list that function
address --- list from that address
At most maxlines lines of source or asm are printed. -s produces source intermixed with disassembly, and -d only disassembles.
value type symbol
where value is the symbol value (usually the address) in hex, and type is a code letter describing the type of the symbol: B, D or R are treated as data symbols, and T as text (code) symbols. File-local symbols have their type letters in lower case, global symbols in upper case. If start is specified, it is added to the value of each symbol.
Each component of the (semicolon-separated) search path is either a path name, added to the beginning of source file names, or a string of the form a>b, replacing a with b at the beginning of source file names.
Example: The source path /usr/src>/pkg/source;/usr>/misc would cause the file name /usr/src/any.c to be translated to /pkg/source/any.c, or, if no such file exists, to /misc/src/any.c.
Another example: The source path /usr/src>C:\My\Source would translate the file name /usr/src/any/file.c to C:\My\Source\any\file.c.