4
0
mirror of https://github.com/QuasarApp/backward-cpp.git synced 2025-05-02 12:59:34 +00:00

Merge pull request from pedronavf/patch-2

Added instruction pointer for 32 bit OS X
This commit is contained in:
François-Xavier Bourlet 2018-05-05 08:00:16 -07:00 committed by GitHub
commit 8f76407505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3715,6 +3715,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