patch-src_Unix_sigsegv_cpp 555 B

1234567891011121314151617181920
  1. $OpenBSD: patch-src_Unix_sigsegv_cpp,v 1.1 2017/01/01 21:27:51 jca Exp $
  2. --- src/Unix/sigsegv.cpp.orig Sun Jan 1 22:05:51 2017
  3. +++ src/Unix/sigsegv.cpp Sun Jan 1 22:10:27 2017
  4. @@ -1445,6 +1445,7 @@ static bool sparc_skip_instruction(unsigned long * reg
  5. #endif
  6. // Decode and skip ARM instruction
  7. +#ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION
  8. #if (defined(arm) || defined(__arm__))
  9. enum {
  10. #if (defined(__linux__))
  11. @@ -1590,6 +1591,7 @@ static bool arm_skip_instruction(unsigned long * regs)
  12. regs[ARM_REG_PC] += 4;
  13. return true;
  14. }
  15. +#endif
  16. #endif