UNW_GET_ACCESSORS(3libunwind) Programming Library UNW_GET_ACCESSORS(3libunwind)

unw_get_accessors -- get pointer to accessor call-backs

#include <libunwind.h>

unw_accessors_t *unw_get_accessors(unw_addr_space_t as);

The unw_get_accessors() routine returns a pointer to a unw_accessors_t structure, which contains the callback routines that were specified when address space as was created (see unw_create_addr_space(3libunwind)). The returned pointer is guaranteed to remain valid until address space as is destroyed by a call to unw_destroy_addr_space(3libunwind).

Note that unw_get_accessors() can be used to retrieve the callback routines for the local address space unw_local_addr_space.

The unw_get_accessors() routine cannot fail and always returns a valid (non-NULL) pointer to an unw_accessors_t structure.

The unw_get_accessors() routine is thread safe as well as safe to use from a signal handler.

libunwind(3libunwind), unw_create_addr_space(3libunwind), unw_destroy_addr_space(3libunwind)

David Mosberger-Tang
Email: dmosberger@gmail.com
WWW: http://www.nongnu.org/libunwind/.

29 August 2023 Programming Library