Skip to content

Commit

Permalink
Add support for RISC-V mcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-schwab committed Apr 26, 2021
1 parent 51822c8 commit f5f329f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4215,6 +4215,8 @@ class SignalHandling {
#elif defined(__ppc__) || defined(__powerpc) || defined(__powerpc__) || \
defined(__POWERPC__)
error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.regs->nip);
#elif defined(__riscv)
error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.__gregs[REG_PC]);
#elif defined(__s390x__)
error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.psw.addr);
#elif defined(__APPLE__) && defined(__x86_64__)
Expand Down

0 comments on commit f5f329f

Please sign in to comment.