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

NAME

6       unw_get_proc_info_in_range  --  get  procedure  info  in IP range and a
7       frame index table
8

SYNOPSIS

10       #include <libunwind.h>
11
12       int unw_get_proc_info_in_range(unw_word_t start_ip, unw_word_t  end_ip,
13       unw_word_t  eh_frame_table,  unw_word_t  eh_frame_table_len, unw_word_t
14       exidx_frame_table, unw_word_t exidx_frame_table_len,,  unw_addr_space_t
15       *as, void *arg);
16

DESCRIPTION

18       The  unw_get_proc_info_in_range() routine returns the same kind of aux‐
19       iliary information about a procedure as unw_get_proc_info_by_ip(),  ex‐
20       cept  that  the info is looked up in instruction-pointer (IP) range and
21       frame table instead of just at IP. This is equally flexible because  it
22       is  possible to look up the info for an arbitrary procedure, even if it
23       is not part of the current call-chain. However, since it is more flexi‐
24       ble,  it  also  tends  to  run  slower  (and  often  much  slower) than
25       unw_get_proc_info().
26

RETURN VALUE

28       On successful completion, unw_get_proc_info_in_range() returns 0.  Oth‐
29       erwise the negative value of one of the error-codes below is returned.
30

THREAD AND SIGNAL SAFETY

32       unw_get_proc_info_in_range() is thread-safe. If the local address-space
33       is passed in argument as, this routine is also safe to use from a  sig‐
34       nal handler.
35

ERRORS

37       UNW_EUNSPEC
38               An unspecified error occurred.
39
40       UNW_ENOINFO
41               Libunwind was unable to locate unwind-info for the procedure.
42
43       UNW_EBADVERSION
44               The unwind-info for the procedure has version or format that is
45              not understood by libunwind.
46
47       UNW_EINVAL
48               An unsupported table encoding was specified.
49
50       In addition, unw_get_proc_info_by_ip() may return any error returned by
51       the access_mem() call-back (see unw_create_addr_space(3)).
52

SEE ALSO

54       libunwind(3),  unw_get_proc_info_in_range(3), unw_create_addr_space(3),
55       unw_get_proc_name(3), unw_get_proc_info(3)
56

AUTHOR

58       David Mosberger-Tang
59       Email: dmosberger@gmail.com
60       WWW: http://www.nongnu.org/libunwind/.
61
62
63
64Programming Library              29 June 2022    UNW_GET_PROC_INFO_IN_RANGE(3)
Impressum