I'm trying to get a call stack trace in a C program
under Solaris 2.6 or later. Does anyone know how
to do it?
The info I'm looking for would be similar to this:
...
(10) 0x00045e08 integ + 0x408 [./two_brn.e]
(11) 0x0006468c trajcem + 0x128 [./two_brn.e]
(12) 0x00055490 fly_traj + 0xf58 [./two_brn.e]
(13) 0x0004052c top_level + 0x14 [./two_brn.e]
(14) 0x000567e4 _start + 0x34 [./two_brn.e]
which shows what the code was doing when it dies.
Under HP-UX and IRIX, a printout like the above can
be obtained by calling U_STACK_TRACE() and
trace_back_stack_and_print(), respectively.
TIA,
--G
Sent via Deja.com
http://www.deja.com/