Debugging Core Files Using HP WDB

$ aCC -g a.c
$ strip a.out
$ /opt/langtools/bin/gdb ./a.out core
HP gdb for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for
warranty/support.
..
warning: Load module ./a.out has been stripped.
Debugging information is not available.
(no debugging symbols found)...
Core was generated by `a.out'.
Program terminated with signal 11, Segmentation fault.
SEGV_ACCERR - Invalid Permissions for object
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...#0 0x40009b0:1 in generate_core_dump+0x21
()
(gdb) bt
#0 0x40009b0:1 in generate_core_dump+0x21 ()
#1 0x4000b40:0 in foo+0x110 ()
#2 0x4000bd0:0 in main+0x20 ()
(gdb)
Debugging Core Files Created by Optimized or Stripped Binaries 25