1UNW_APPLY_REG_STATE(3)       Programming Library        UNW_APPLY_REG_STATE(3)
2
3
4

NAME

6       unw_apply_reg_state -- apply a register state update to a cursor
7

SYNOPSIS

9       #include <libunwind.h>
10
11       int unw_apply_reg_state(unw_cursor_t *cp, void *reg_states_data);
12

DESCRIPTION

14       The unw_apply_reg_state() routine updates the register values of a cur‐
15       sor according to the instructions in reg_states_data, which  have  been
16       obtained by calling unw_reg_states_iterate.
17

RETURN VALUE

19       On  successful  completion, unw_apply_reg_state() returns 0.  Otherwise
20       the negative value of one of the error-codes below is returned.
21

THREAD AND SIGNAL SAFETY

23       unw_apply_reg_state() is thread-safe. If cursor  cp  is  in  the  local
24       address-space, this routine is also safe to use from a signal handler.
25

ERRORS

27       UNW_EUNSPEC
28               An unspecified error occurred.
29
30       UNW_ENOINFO
31               Libunwind was unable to locate unwind-info for the procedure.
32
33       UNW_EBADVERSION
34               The unwind-info for the procedure has version or format that is
35              not understood by libunwind.
36
37       In addition, unw_apply_reg_state() may return any error returned by the
38       access_mem() call-back (see unw_create_addr_space(3)).
39

SEE ALSO

41       libunwind(3), unw_reg_states_iterate(3)
42

AUTHOR

44       David Mosberger-Tang
45       Email: dmosberger@gmail.com
46       WWW: http://www.nongnu.org/libunwind/.
47
48
49
50Programming Library             16 August 2017          UNW_APPLY_REG_STATE(3)
Impressum