SEARCH MEMORY

Search the memory for an expression value.

Syntax

SEARCH MEMORY [/ADDRESS=startaddress] [/LENGTH=length] [/SIZE=size] [/SYMBOL symbolname] expression1[,expression2],

SEARCH MEMORY [/ADDRESS=startaddress] [/LENGTH=length] [/SIZE=size] [/SYMBOL symbolname] /NEXT

Parameters

/ADDRESS = startaddress

The search starts at the address given by the value of the expression startaddress. The default value for this option is 0x0.

/LENGTH=length

This optional parameter defines the number of bytes to be displayed in the Console window. The default is 1 byte.

/SIZE=size

This optional parameter specifies the assumed size of the expression. The size defaults to BYTE.

The following values are permitted for size:

BYTE

DOUBLE

FLOAT

LONG

LONGDOUBLE

LONGLONG

WORD

/SYMBOL symbolname

The result of the search which is the value of the variable @FOUND_MEMORY is stored in a debugger variable named symbolname.

/NEXT

The expression list of the previous SEARCH MEMORY is taken and reevaluated. The option /NEXT and the expression list are mutually exclusive.

Description

This command searches in the memory for the value of the specified expression expression. If more than one expression is entered, they must be separated by commas.

If the search is successful, the debugger variable @FOUND_MEMORY contains the absolute memory address of the found location. If the value list could not be found, a message is printed in the Console window and the value of @FOUND_MEMORY remains unchanged.

In the Intel® System Debugger, the memory only contains valid data after write access to a block to reduce the size of allocated memory.

Example

SEARCH MEMORY 0xFF,0x0
SEARCH MEMORY /NEXT /ADDRESS=@FOUND_MEMORY

See Also

Optimization Notice: 
For more complete information about compiler optimizations, see our Optimization Notice.