Added instruction pointer for 32 bit OS X

This commit is contained in:
Pedro Navarro 2018-03-30 11:51:10 -07:00 committed by GitHub
parent c25d2e0f8e
commit 91c92d94b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2226,6 +2226,8 @@ public:
error_addr = reinterpret_cast<void*>(uctx->uc_mcontext.psw.addr);
#elif defined(__APPLE__) && defined(__x86_64__)
error_addr = reinterpret_cast<void*>(uctx->uc_mcontext->__ss.__rip);
#elif defined(__APPLE__)
error_addr = reinterpret_cast<void*>(uctx->uc_mcontext->__ss.__eip);
#else
# warning ":/ sorry, ain't know no nothing none not of your architecture!"
#endif