blob: 0acdac9617b75d2f34d7563bf7a57a89dc07e1d5 [file] [log] [blame]
mostang.com!davidm9787d382003-03-13 02:15:01 +00001'\" t
David Mosberger-Tang75f34cc2007-08-22 12:49:08 -06002.\" Manual page created with latex2man on Thu Aug 16 09:44:45 MDT 2007
mostang.com!davidm9787d382003-03-13 02:15:01 +00003.\" NOTE: This file is generated, DO NOT EDIT.
4.de Vb
5.ft CW
6.nf
7..
8.de Ve
9.ft R
10
11.fi
12..
David Mosberger-Tang75f34cc2007-08-22 12:49:08 -060013.TH "UNW\\_INIT\\_REMOTE" "3" "16 August 2007" "Programming Library " "Programming Library "
mostang.com!davidm9787d382003-03-13 02:15:01 +000014.SH NAME
mostang.com!davidm9eb9f312003-04-01 07:19:34 +000015unw_init_remote
16\-\- initialize cursor for remote unwinding
mostang.com!davidm9787d382003-03-13 02:15:01 +000017.PP
18.SH SYNOPSIS
19
20.PP
21#include <libunwind.h>
22.br
23.PP
24int
25unw_init_remote(unw_cursor_t *c,
26unw_addr_space_t as,
27void *arg);
28.br
29.PP
30.SH DESCRIPTION
31
32.PP
33The unw_init_remote()
34routine initializes the unwind cursor
35pointed to by c
36for unwinding in the address space identified by
37as\&.
38The as
39argument can either be set to
40unw_local_addr_space
41(local address space) or to an arbitrary
42address space created with unw_create_addr_space().
43.PP
44The arg
45void\-pointer tells the address space exactly what entity
46should be unwound. For example, if unw_local_addr_space
47is
48passed in as,
49then arg
50needs to be a pointer to a context
51structure containing the machine\-state of the initial stack frame.
52However, other address\-spaces may instead expect a process\-id, a
53thread\-id, or a pointer to an arbitrary structure which identifies the
54stack\-frame chain to be unwound. In other words, the interpretation
55of arg
56is entirely dependent on the address\-space in use;
57libunwind
58never interprets the argument in any way on its own.
59.PP
60Note that unw_init_remote()
61can be used to initiate unwinding
62in \fIany\fP
63process, including the local process in which the
64unwinder itself is running. However, for local unwinding, it is
65generally preferable to use unw_init_local()
66instead, because
67it is easier to use and because it may perform better.
68.PP
69.SH RETURN VALUE
70
71.PP
72On successful completion, unw_init_remote()
73returns 0.
74Otherwise the negative value of one of the error\-codes below is
75returned.
76.PP
77.SH THREAD AND SIGNAL SAFETY
78
79.PP
80unw_init_remote()
mostang.com!davidm835bb912004-03-31 07:42:38 +000081is thread\-safe. If the local address\-space
82is passed in argument as,
83this routine is also safe to use from
84a signal handler.
mostang.com!davidm9787d382003-03-13 02:15:01 +000085.PP
86.SH ERRORS
87
88.PP
89.TP
90UNW_EINVAL
91 unw_init_remote()
92was called in a
93version of libunwind
94which supports local unwinding only
95(this normally happens when defining UNW_LOCAL_ONLY
96before
97including <libunwind.h>
98and then calling
99unw_init_remote()).
100.TP
101UNW_EUNSPEC
102 An unspecified error occurred.
103.TP
104UNW_EBADREG
105 A register needed by unw_init_remote()
106wasn\&'t accessible.
107.PP
108.SH SEE ALSO
109
110.PP
111libunwind(3),
112unw_create_addr_space(3),
113unw_init_local(3)
114.PP
115.SH AUTHOR
116
117.PP
118David Mosberger\-Tang
mostang.com!davidm9787d382003-03-13 02:15:01 +0000119.br
David Mosberger-Tang75f34cc2007-08-22 12:49:08 -0600120Email: \fBdmosberger@gmail.com\fP
121.br
122WWW: \fBhttp://www.nongnu.org/libunwind/\fP\&.
mostang.com!davidm9787d382003-03-13 02:15:01 +0000123.\" NOTE: This file is generated, DO NOT EDIT.