
GRMON3-UM
June 2019, Version 3.1.0
201
www.cobham.com/gaisler
94. symbols - syntax
NAME
symbols - Load, print or lookup symbols
SYNOPSIS
symbols ?
options
?
filename
?
cpu#
?
symbols
subcommand
?
arg
?
DESCRIPTION
The symbols command is used to load symbols from an object file. It can also be used to print all loaded symbols
or to lookup the address of a specified symbol.
symbols ?
options
?
filename
?
cpu#
?
Load the symbols from
filename
. If cpu# argument is omitted, then the symbols will be associated with
the active CPU.
Options:
-debug
Read in DWARF debug information
symbols clear ?
cpu#
?
Remove all symbols associated with the active CPU or a specific CPU.
symbols list ?
options
? ?
cpu#
?
This command lists loaded symbols. If no options are given, then all local and global functions and objects
are listed. The optional argument cpu# can be used to limit the listing for a specific CPU.
Options:
-global
List global symbols
-local
List local symbols
-func
List functions
-object
List objects
-all
List all symbols
symbols lookup
symbol
?
cpu#
?
Lookup the address of the specified symbol using the symbol table of the active CPU. If cpu# is specified,
then it will only look in the symbol table associated with that CPU.
symbols lookup
address
?
cpu#
?
Lookup symbol for the specified address using the symbol table of the active CPU. If cpu# is specified,
then it will only look in the symbol table associated with that CPU. At most one symbol is looked up.
RETURN VALUE
Upon successful completion symbols list will return a list of all symbols and their attributes.
Nothing will be returned when loading or clearing.
Command symbols lookup will return the corresponding address or symbol.
EXAMPLE
Load the symbols in the file
hello
.
grmon3> symbols hello