routine initializes the unwind cursor
pointed to by c
with the machine-state in the context structure
pointed to by ctxt.
As such, the machine-state pointed to by
identifies the initial stack frame at which unwinding
starts. The machine-state must remain valid for the duration for
which the cursor c
is in use.
routine can be used only for unwinding in
the address space of the current process (i.e., for local unwinding).
For all other cases, unw_init_remote()
must be used instead.
From a behavioral point of view, the call:
ret = unw_init_local(&cursor, &ucontext);
is equivalent to:
ret = unw_init_remote(&cursor, unw_local_addr_space,
However, unwind performance may be better when using
available even when UNW_LOCAL_ONLY
has been defined before