Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP

hp.com home


unw_regname

» 

HP Labs

» Research
» News and events
» Technical reports
» About HP Labs
» Careers @ HP Labs
» People
» Worldwide sites
» Downloads
Content starts here


Table of Contents

Synopsis

#include <libunwind.h>

const char *unw_regname(unw_regnum_t regnum);

Description

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.

See Also

libunwind(3)

Author

David Mosberger-Tang
Hewlett-Packard Labs
Palo-Alto, CA 94304
Email: davidm@hpl.hp.com
WWW: http://www.hpl.hp.com/research/linux/libunwind/.

Printable version
Privacy statement Using this site means you accept its terms Feedback to HP Labs
© 2009 Hewlett-Packard Development Company, L.P.