Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "8.12 Is trace on HP-UX?"
Next document is "9. HARDWARE AND PERIPHERALS"
8.13 How to get C programs automatically generate stack dumps?
Here is how you get a C program automatically generate a stack dump
when they abend:
U_STACK_TRACE() is an undocumented function that resides in libcl.a.
Set up the signal handling like this:
#include <signal.h>
extern void U_STACK_TRACE();
signal(SIGSEGV, U_STACK_TRACE);
(Thanks to <matthews@cadcam.pms.ford.com>)
Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "8.12 Is trace on HP-UX?"
Next document is "9. HARDWARE AND PERIPHERALS"