mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 23:47:39 +01:00
Rename: src/x86/regname-x86.c -> src/x86/regname.c
(Logical change 1.241)
This commit is contained in:
parent
0219cd0e73
commit
85b14bb7f6
1 changed files with 25 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
#include "unwind_i.h"
|
||||
|
||||
static const char *regname[] =
|
||||
{
|
||||
"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"
|
||||
};
|
||||
|
||||
PROTECTED const char *
|
||||
unw_regname (unw_regnum_t reg)
|
||||
{
|
||||
if (reg < (unw_regnum_t) NELEMS (regname))
|
||||
return regname[reg];
|
||||
else
|
||||
return "???";
|
||||
}
|
Loading…
Reference in a new issue