unw_regname(3)

unw_regname3

Usage

#include <libunwind.h>

const char *unw_regname(unw_regnum_t regnum);

Overview

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.

Return value

The unw_regname() routine cannot fail and always returns a valid (non-NULL) string.

Thread and signal safety

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

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0–12
  2. Arch

Author

David Mosberger-Tang
Email: [email protected]
WWW: http://www.nongnu.org/libunwind/.

From libunwind 1.8.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.