evaluate

Display variable or expression.

Syntax
evaluate [#<format>] [-l] [<var|expr>]
Parameter
<format>

Output format and possible values:

#-, #Default

#d, #Signed

#u, #Unsigned

#h, #x, #Hex

#c, #Char

#s, #CString

#p, #PascalString

#f, #Float

#e, #Enum

#i, #Fixed

#o, #w, #Unicode

#b, #Binary

<none>, #Fract
<none>, #Boolean
<none>, #SignedFixed
Examples

The following table lists and defines examples of the evaluate command.

Table 1. evaluate Command-line debugger command - Examples
Command Description
evaluate Lists the types for all the variables in current and global stack.
evaluate i Returns the value of variable 'i'
evaluate #b i Returns the value of variable 'i' formatted in binary
evaluate -l 10 Returns the address for line 10 in the current file
evaluate -l myfile.c,10 Returns the address for line 10 in file myfile.c
evaluate -l +10 Returns the address to an offset of 10 lines starting from the current line
evaluate -l myfile.c:mysymbol Returns the address of the symbol 'mysymbol' defined in file 'myfile.c'.
evaluate -l mysymbol Returns the address of the global symbol 'mysymbol'.
evaluate -l mysymbol +10 Returns the address of the 10'th line belonging to the global symbol 'mysymbol'.
evaluate -l myfile.c:mysymbol Returns the address of the local symbol 'mysymbol' defined in the file 'myfile.c'.
evaluate -l myfile.c:mysymbol 10 Returns the address of the 10'th line belonging to the local symbol.