1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-16 13:18:12 +01:00

(_UPT_reg_offset): Add definitions for x86.

(Logical change 1.71)
This commit is contained in:
hp.com!davidm 2003-03-29 07:32:50 +00:00
parent e00aa27222
commit 1acfcc74e5

View file

@ -214,6 +214,24 @@ int _UPT_reg_offset[UNW_REG_LAST] =
[UNW_IA64_IP] = PT_CR_IIP [UNW_IA64_IP] = PT_CR_IIP
#elif defined(HAVE_TTRACE) #elif defined(HAVE_TTRACE)
# warning No support for ttrace() yet. # warning No support for ttrace() yet.
#elif defined(UNW_TARGET_X86)
[UNW_X86_EAX] = 0x18,
[UNW_X86_EBX] = 0x00,
[UNW_X86_ECX] = 0x04,
[UNW_X86_EDX] = 0x08,
[UNW_X86_ESI] = 0x0c,
[UNW_X86_EDI] = 0x10,
[UNW_X86_EBP] = 0x14,
[UNW_X86_EIP] = 0x30,
[UNW_X86_ESP] = 0x3c
/* CS = 0x34, */
/* DS = 0x1c, */
/* ES = 0x20, */
/* FS = 0x24, */
/* GS = 0x28, */
/* ORIG_EAX = 0x2c, */
/* EFLAGS = 0x38, */
/* SS = 0x40 */
#else #else
# error Fix me. # error Fix me.
#endif #endif