10-20-2004 05:34 AM
Do not know if someone already asked this before.
I would like to print a stack trace (function + source file + source line) in a program to give information on where an exception was thrown, where a signal was caught etc... I tried to use U_STACK_TRACE() function but it does not give the source file and source line (even using -g option). Is there an example of code to do such trace ?
We run HP-UX on PA-RISC and we compile 64 bits applications using aCC 3.52.
Thanks for any feedback
10-20-2004 05:42 AM
Maybe this link from itrc would help,
the itrc doc id is UNX1000205.
Hope this helps.
02-04-2012 10:01 PM
>would like to print a stack trace (function + source file + source line). I tried to use U_STACK_TRACE() but it does not give the source file and source line (even using -g option).
The Integrity version of U_STACK_TRACE() will print the source and line info, even without -g.
For PA, you will have to use -g and gdb to map hex addresses to source positions.