A stack trace can be listed using the stack trace command:
stack /* Print stack backtrace */ stack address /* Start backtrace at address */ stack -p [pid|proc_addr] /* Print trace for process */Stack traces, which are indispensable in debugging, are obtained by examining the stack. The output of the stack command is:
ebp1 function #1 called, arguments where from #1 ebp2 function #2 called, arguments where from #2 ...The address printed to the left of a function is the base pointer to the stack frame active in that function.