2003-01-21 09:08:32 +01:00
|
|
|
#include "unwind_i.h"
|
|
|
|
|
|
|
|
static const char *regname[] =
|
|
|
|
{
|
2003-12-20 12:50:00 +01:00
|
|
|
"eax", "edx", "ecx", "ebx", "esi", "edi", "ebp", "esp", "eip",
|
|
|
|
"eflags", "trapno",
|
|
|
|
"st0", "st1", "st2", "st3", "st4", "st5", "st6", "st7",
|
|
|
|
"fcw", "fsw", "ftw", "fop", "fcs", "fip", "fea", "fds",
|
|
|
|
"xmm0_lo", "xmm0_hi", "xmm1_lo", "xmm1_hi",
|
|
|
|
"xmm2_lo", "xmm2_hi", "xmm3_lo", "xmm3_hi",
|
|
|
|
"xmm4_lo", "xmm4_hi", "xmm5_lo", "xmm5_hi",
|
|
|
|
"xmm6_lo", "xmm6_hi", "xmm7_lo", "xmm7_hi",
|
|
|
|
"mxcsr",
|
|
|
|
"gs", "fs", "es", "ds", "ss", "cs",
|
|
|
|
"tss", "ldt"
|
2003-01-21 09:08:32 +01:00
|
|
|
};
|
|
|
|
|
2004-01-03 11:50:24 +01:00
|
|
|
PROTECTED const char *
|
2003-01-21 09:08:32 +01:00
|
|
|
unw_regname (unw_regnum_t reg)
|
|
|
|
{
|
2003-09-25 07:29:14 +02:00
|
|
|
if (reg < (unw_regnum_t) NELEMS (regname))
|
2003-01-21 09:08:32 +01:00
|
|
|
return regname[reg];
|
|
|
|
else
|
|
|
|
return "???";
|
|
|
|
}
|