I'm on solaris 8. I need to check the stack trace inside my C program. I don't have printstack or walkstack. I tested getcontext and it works. But how do I get the symbols from "stack_t" ? Help please. Many thanks!
Maybe use system() to invoke the pstack program? I have never tried that...
I need to examine the stack trace inside the C program not to dump it to the shell.
Ok, then, popen rather than system.
Cool. That solves my problem. Thanks a million !!!