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