diff --git a/libs/libdaemon/src/Daemon.cpp b/libs/libdaemon/src/Daemon.cpp index d6f6be6ea76..0d088fcd05f 100644 --- a/libs/libdaemon/src/Daemon.cpp +++ b/libs/libdaemon/src/Daemon.cpp @@ -232,8 +232,12 @@ private: void * caller_address = nullptr; +#if defined(__x86_64__) /// Get the address at the time the signal was raised from the RIP (x86-64) caller_address = reinterpret_cast(context.uc_mcontext.gregs[REG_RIP]); +#elif defined(__aarch64__) + caller_address = reinterpret_cast(context.uc_mcontext.pc); +#endif static const int max_frames = 50; void * frames[max_frames];