6.6.21. findstring

The findstring command searches for the specified string in the specified area of memory or, by default, in the whole available memory range. The command displays messages giving the starting address of every occurrence found of the specified value.

If you view the contents of memory with size set to more than 8 bits, it is possible for bytes to be displayed in an order different from that in which they are stored (as a result of the endian setting). The findstring command always tests consecutive memory locations, regardless of how the contents of those locations might be displayed.

The shorthand form of the findstring command is fds.

Syntax

fds string[[ low-expr][ [+]high-expr]]

where:

string

Specifies the string you are seeking.

low-expr

Is an expression that evaluates to the memory address where the search is to begin.

high-expr

Is an expression that evaluates to the memory address where the search is to end or, if preceded by +, the number of bytes of memory to search.

Example

fds "cb" 0x8300 0x8400

Reports finding the specified string at five addresses within the specified range if you have performed the fillmem example. The order in which the bytes you entered in the fillmem example are stored depends on the endian setting of the target. This fds example assumes they were stored in the order 0x64 0x63 0x62 0x61 ("dcba").

Copyright © 1999-2006 ARM Limited. All rights reserved.ARM DUI 0066G
Non-Confidential