UNW_REGNAME(3libunwind) | Programming Library | UNW_REGNAME(3libunwind) |
unw_regname -- get register name
#include <libunwind.h>
const char *unw_regname(unw_regnum_t regnum);
The unw_regname() routine returns a printable name for register regnum. If regnum is an invalid or otherwise unrecognized register number, a string consisting of three question marks is returned. The returned string is statically allocated and therefore guaranteed to remain valid until the application terminates.
The unw_regname() routine cannot fail and always returns a valid (non-NULL) string.
The unw_regname() routine is thread safe as well as safe to use from a signal handler.
libunwind(3libunwind)
David Mosberger-Tang
Email: dmosberger@gmail.com
WWW: http://www.nongnu.org/libunwind/.
29 August 2023 | Programming Library |