Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)

"hihi" Specifies the pattern (expr1).
Using the /max-count parameter
(gdb) find /1 &int8_search_buf[0], +sizeof(int8_search_buf), 'a', 'a', 'a'
where:
/1 Specifies the find command to display only one
matching pattern.
&int8_search_buf[0] Specifies the starting address.
+sizeof(int8_search_buf) Specifies the ending address.
'a', 'a', 'a' Specifies the pattern (expr1, expr2, expr3).
Using the /size-char parameter
(gdb) find /b &int8_search_buf[0], &int8_search_buf[0]+sizeof(int8_search_buf),
0x61, 0x61, 0x61, 0x61
where:
/b Specifies that the size of the pattern is 8 bits.
&int8_search_buf[0] Specifies the starting address.
&int8_search_buf[0]
+sizeof(int8_search_buf)
Specifies the ending address.
0x61, 0x61, 0x61, 0x61 Specifies the pattern (expr1, expr2, expr3, exp4).
NOTE: Following are different ways of representing the /size-char and /max-count
parameters:
/1b
/b1
/b /1
/1 /b
where:
1 Specifies that find must display 1 matching pattern.
b Specifies that the size of the pattern is 8 bits.
14.15 Debugging Core Files
14.15.1 Generating core files with packcore /unpackcore/getcore
The contents of a core file can be viewed only on a system which has all the shared libraries that
were in use on the system on which the core file was generated. If you want to view the content
of the core file on a system which does not have the shared libraries, you have to set the environment
variables GDB_SHLIB_PATH or GDB_SHLIB_ ROOT to make it search for the desired libraries.
The commands packcore, unpackcore, and getcore simplify the process of examining the contents
of a core file on a system other than the one in which it was generated.
The packcore command is used on the system which generated the core file. When you are
examining the core file on the original system, you can execute packcore to make a
packcore.tar.Z file. This is a compressed tar file which contains the core file, the executable,
and all the shared libraries that were used by the program when it generated the core file. The
core file is removed after it is added to the packcore.tar.Z file.
The packcore command has one optional argument, basename, which can be used instead of
packcore to make packcore.tar.Z.
14.15 Debugging Core Files 153