Debugging Core Files Using HP WDB (5900-1573; WDB 6.2; January 2011)
NOTE: If an application crashes in the aries signal handler, the debug-aries option
is turned on by default and only the libaries frames are displayed.
Command to Search for a Pattern in the Memory Address Space
HP WDB 6.0 and later versions provide the find command to search 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.
30