search

The search command search the memory for patterns.

Command Format

search from to pattern

where:

from address where search should start
to address where search should end
pattern pattern specification. See below on how to specify patterns

Functional description

The search command is used to search an area of memory for the given data pattern. The pattern is expressed as bytes and can be of any size not exeeding the maximum size of 80 bytes.

Examples of valid pattern arguments are:

0x13                       One character pattern.
0x13 0x10 0x0              A three character pattern.
0x13 -s "Hello world" 0x0  A zero terminated string.

The search operation is terminated when the to address is reached. Each time the pattern is found the memory locations containing the pattern is displayed.

The following example searches the first megabyte of memory for the NULL terminated string PMON and display all occurances.

PMON> search 0 100000 -s PMON 0x0
0000fcfc  504d4f4e 00000000  00000001 000871c8   PMON..........q
0006739a  504d4f4e 00000000  00000a50 4d4f4e2f   PMON.......PMON
0007f140  504d4f4e 00307830  00000000 00000000   PMON.0x0.......
00087ee3  504d4f4e 0000087e  e8000000 03682073   PMON...~.....h
PMON>

Environment

The command uses no environment variable.

See Also

The copy and fill commands.