Read the current values of fp, sl and pc (so that _kernel_unwind() can be called).
Generates a stack backtrace on stderr.
Sends a backtrace to 'stream', prefixing each line with 'prefix'.
Sends a backtrace to 'fn', prefixing each line with 'prefix'.
Returns PC for caller.
Returns value of stack-limit register.
Strips off status flags and processor mode from the current PC.
Returns the current function-nesting depth. Only functions which set up a stack-frame are detected, and note that Shared C Lib stack-extension functions create a stack-frame.
Returns a pointer to an internal object containing array of current functions. Each entry in the array is the address of the save instruction used to create each stack-frame. This instruction is usually a 'STM ...'. 'functions[0]' is address of most recent save instruction. 'n' is number of functions found.
A maximum of BackTrace_MAXFNS are found.
Returns function name if ptr is <= 4 words after start of function and the name is embedded in code. Otherwise returns NULL.
#define BackTrace_MAXFNS 256