Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
0x40172b25: (ea) P7lc_when t=7
0x40172b27: (b2) P3lc_gr gr=40
0x40172b29: (61) R3body rlen=33
0x40172b2b: (81) B1label_state label=1
0x40172b2c: (c0) B2epilogue t=44
0x40172b2e: (00) R1prologue rlen=0
0x40172b2f: (00) R1prologue rlen=0
14.14 Command to Search for a Pattern in the Memory Address Space
The HP WDB find command searches for a pattern in the given memory address range
for both live and corefile debugging. Following is the syntax for the find command:
find [/size-char] [/max-count] start-address, end-address, expr1
[, expr2 ...]
find [/size-char] [/max-count] start-address, +length, expr1 [,
expr2 ...]
where:
/size-char Specifies the size of the pattern. It can be b, h, w, or g for
8-, 16-, 32-, 64-bit values, respectively. It is applicable only
for hexadecimal patterns.
If /size-char is not specified, the size is obtained from
the type of the expression in the current programming
language.
This is an optional parameter.
/max-count Specifies the maximum number of matching patterns to be
displayed. This is an optional parameter.
start-address Specifies the start address in the given memory address
range. This parameter is mandatory.
end-address Specifies the end address in the given memory address
range. This parameter is mandatory.
+length Specifies the length of the memory address range. This
parameter is mandatory when end-address is not
specified.
expr1, expr2, .... Specifies a variable or pattern to be searched. The pattern
can be a variable, hexadecimal character, a character, or
a string value. The character pattern must be enclosed
within single quotes. The string pattern must be enclosed
within double quotes. This parameter is mandatory.
The $numfound variable contains the number of patterns matched within the given
memory address range.
14.14 Command to Search for a Pattern in the Memory Address Space 191