1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-07-02 13:41:46 +02:00
libunwind-eh_elf/src/x86/regname-x86.c

16 lines
273 B
C
Raw Normal View History

#include "unwind_i.h"
static const char *regname[] =
{
"eax", "ebx", "ecx", "edx", "esi", "edi", "ebp", "eip", "esp"
};
const char *
unw_regname (unw_regnum_t reg)
{
if (reg < (unw_regnum_t) NELEMS (regname))
return regname[reg];
else
return "???";
}