Backtrace call in 10.5

backtrace() writes the function return addresses of the current call stack to the array of pointers referenced by array.

man backtrace