diff options
Diffstat (limited to 'contrib/backward-cpp/backward.hpp')
-rw-r--r-- | contrib/backward-cpp/backward.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/backward-cpp/backward.hpp b/contrib/backward-cpp/backward.hpp index ce725559b..ca09b7217 100644 --- a/contrib/backward-cpp/backward.hpp +++ b/contrib/backward-cpp/backward.hpp @@ -4222,6 +4222,8 @@ public: #else error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.pc); #endif +#elif defined(__loongarch__) + error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.__pc); #elif defined(__mips__) error_addr = reinterpret_cast<void *>( reinterpret_cast<struct sigcontext *>(&uctx->uc_mcontext)->sc_pc); |