From 91c92d94b68d6430cb09fac756295e6c176968f0 Mon Sep 17 00:00:00 2001 From: Pedro Navarro Date: Fri, 30 Mar 2018 11:51:10 -0700 Subject: [PATCH] Added instruction pointer for 32 bit OS X --- backward.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backward.hpp b/backward.hpp index f9f2f33..3ae342f 100644 --- a/backward.hpp +++ b/backward.hpp @@ -2226,6 +2226,8 @@ public: error_addr = reinterpret_cast(uctx->uc_mcontext.psw.addr); #elif defined(__APPLE__) && defined(__x86_64__) error_addr = reinterpret_cast(uctx->uc_mcontext->__ss.__rip); +#elif defined(__APPLE__) + error_addr = reinterpret_cast(uctx->uc_mcontext->__ss.__eip); #else # warning ":/ sorry, ain't know no nothing none not of your architecture!" #endif