提交 c04c9ac9 编写于 作者: A antirez

minor fix for Linux 64 bit

上级 4409877e
...@@ -6598,8 +6598,8 @@ static void *getMcontextEip(ucontext_t *uc) { ...@@ -6598,8 +6598,8 @@ static void *getMcontextEip(ucontext_t *uc) {
#else #else
return (void*) uc->uc_mcontext->__ss.__eip; return (void*) uc->uc_mcontext->__ss.__eip;
#endif #endif
#elif defined(__i386__) || defined(__X86_64__) /* Linux x86 */ #elif defined(__i386__) || defined(__X86_64__) || defined(__x86_64__)
return (void*) uc->uc_mcontext.gregs[REG_EIP]; return (void*) uc->uc_mcontext.gregs[REG_EIP]; /* Linux 32/64 bit */
#elif defined(__ia64__) /* Linux IA64 */ #elif defined(__ia64__) /* Linux IA64 */
return (void*) uc->uc_mcontext.sc_ip; return (void*) uc->uc_mcontext.sc_ip;
#else #else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册