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