4
Debugging Applications
This chapter describes how to debug serial and parallel applications in the HP XC development environment. In general, effective debugging of applications requires the applications to
be compiled with debug symbols, typically the
4.1 Debugging Serial Applications
Debugging a serial application on an HP XC system is performed the same as debugging a serial application on a conventional Linux operating system. Refer to standard Linux documentation for information about debugging serial programs.
The following serial debuggers are available for use in the HP XC environment for local debugging:
•The gdb utility is provided with the standard Linux distribution; it performs
•The idb utility is generally available with the Intel compiler suite.
•The pgdbg utility is generally available with the PGI compilers.
For information about using these debuggers, refer to standard Linux documentation and the documentation that is available with the specific debugger that you are using.
4.2 Debugging Parallel Applications
The following parallel debuggers are recommended for use in the HP XC environment are TotalView and DDT.
TotalViewTotalView is a
http://www.etnus.com
_________________________ Note _________________________
TotalView is not included with the HP XC software and is not supported. If you have any problems installing or using TotalView, contact Etnus, Inc.
DDTDDT (Distributed Debugging Tool) is a parallel debugger from Streamline Computing. DDT is a comprehensive graphical debugger designed for debugging parallel code. It gives users a common interface for most compilers, languages and MPI distributions. For information about using DDT, refer to Streamline Computing documentation and the Streamline Computing Web site:
Debugging Applications