Debugging Core Files Using HP WDB (5900-1573; WDB 6.2; January 2011)

1. Invoke WDB on the core file on the system where the core file was created.
2. Enter the packcore command to package the .tar file with the core file, the
relevant libraries, and the relevant binaries.
3. Transfer the .tar file to the required system.
4. Enter the unpackcore command to unpack the .tar file on this system.
5. Start debugging the core file on this system.
6. If you exit from the debugging session, and must debug the same core file again,
you can use the getcore command to examine the packcore directory, which
was previously created by unpackcore. The getcore command accepts the name
of the packcore directory as an argument.
Support for Core File Debugging of MITR Applications
With WDB 6.0 and later versions, corefile debugging support for MIxed mode TRanslator
(MITR) applications has been provided. MITR applications are Itanium applications that
load and execute 32-bit HP PA-RISC libraries. The PA-RISC libraries are executed using
an emulator library, /usr/lib/hpux32/libaries32.so, which is loaded by the
dynamic loader when routines in the PA-RISC library are called.
For more information on MITR, see the HP MITR webpage at:
http://www.hp.com/go/mitr
This section addresses the following topics:
“Configuring WDB for Mixed Mode Debugging (page 27)
“Command to Support Core File Debugging in Mixed More Applications (page 27)
“Change in the Behavior of Existing Commands (page 28)
“Known Issues and Unsupported Features in Mixed Mode Debugging” (page 29)
Configuring WDB for Mixed Mode Debugging
WDB uses a helper library, libaries64.so, to read in information about the emulated
stack frames. By default, WDB uses the /usr/lib/hpux64/libaries64.so library,
which can be modified by setting the GDB_ARIES_LIB environment variable to load
the appropriate libaries64.so library.
NOTE: Only the 64-bit version of the libaries64.so library can be used to read
in data about the emulated stack frames.
Command to Support Core File Debugging in Mixed More Applications
The set debug-aries command is introduced in HP WDB 6.0 and later versions to
support core file debugging in mixed mode applications. The set debug-aries
command is used to determine whether the frames of the emulator library
Support for Core File Debugging of MITR Applications 27