Viewing expressions

To view previous memory, enter:

^ [exp_format]

This causes the debugger to back up and display preceding memory location based on the size and address of last item displayed. Uses a previous format if exp_format is not supplied. This may not work if displaying instructions on a machine with variable length instructions.

Eval

The eval command evaluates expressions, but does not display the results. This is valuable when dealing with expressions which may refer to volatile memory regions. For example, with the memory cache disabled (_CACHE = 0),

print *(int *)address = value

will perform one write-memory and one read-memory access to the target and will print the value of the expression, whereas

eval *(int *)address = value

will perform in one write-memory and no read-memory accesses and will not print the value of the expression.

Examine

examine[/exp_format] exp

If exp is a procedure name, then this is equivalent to the e exp command. See e.

If exp is a number followed by a b, such as 3b, then the debugger moves to that breakpoint.

In all other cases, this command is identical to the print command (see below).

Print

print[/exp_format] exp

Displays the value of expression exp exactly using exp_format.

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.