2 .\" Manual page created with latex2man on Thu Aug 16 09:44:45 MDT 2007
3 .\" NOTE: This file is generated, DO NOT EDIT.
13 .TH "UNW\\_INIT\\_LOCAL" "3" "16 August 2007" "Programming Library " "Programming Library "
16 \-\- initialize cursor for local unwinding
21 #include <libunwind.h>
25 unw_init_local(unw_cursor_t *c,
33 routine initializes the unwind cursor
35 with the machine\-state in the context structure
37 As such, the machine\-state pointed to by
39 identifies the initial stack frame at which unwinding
40 starts. The machine\-state must remain valid for the duration for
45 routine can be used only for unwinding in
46 the address space of the current process (i.e., for local unwinding).
47 For all other cases, unw_init_remote()
49 From a behavioral point of view, the call:
52 ret = unw_init_local(&cursor, &ucontext);
57 ret = unw_init_remote(&cursor, unw_local_addr_space,
60 However, unwind performance may be better when using
62 Also, unw_init_local()
64 available even when UNW_LOCAL_ONLY
65 has been defined before
66 including <libunwind.h>,
67 whereas unw_init_remote()
73 On successful completion, unw_init_local()
75 Otherwise the negative value of one of the error\-codes below is
78 .SH THREAD AND SIGNAL SAFETY
82 is thread\-safe as well as safe to use from a
93 which supports remote unwinding only
94 (this normally happens when calling unw_init_local()
96 cross\-platform version of libunwind).
99 An unspecified error occurred.
102 A register needed by unw_init_local()
114 David Mosberger\-Tang
116 Email: \fBdmosberger@gmail.com\fP
118 WWW: \fBhttp://www.nongnu.org/libunwind/\fP\&.
119 .\" NOTE: This file is generated, DO NOT EDIT.