Has anyone ever written a stack trace function for HPUX? I already know that there is a function U_STACK_TRACE() which can be called, but what I really want is a pointer to the frame above where I am currently at. Which means I guess I need to understand the stack layout on HPUX, and a little bit of assembly for the PA-RISC processor. Does anyone know if there are any websites/documents that describe this? Turns out to be not exactly a c question. Sorry. And Thanks.