GDB is the most widely used tool for debugging “C” applications. Refer to the attached documents for complete/quick reference guide on GDB.
“gdb.pdf” is a comprehensive book on how to use gdb to debug c/c++ applications.Click here to download.
“gdb-refcard.pdf” is a quick reference guide of gdb commands. A very handy one page document for those who just want to have a glance at various gdb commands.Click here to download.
Both the documents are available online at
HPUX has a simillar debugging tool called WDB. WDB has commands very simillar to gdb and the method used for debugging is also same as gdb.