Displaying 1 result from an estimated 1 matches for "_call_reportfault".
2012 Jun 05
0
[LLVMdev] CrashRecoveryContext on Windows
...td::cerr << "Caught LLVM ERROR: " << Reason << "\n";
  abort();  // Chains to win_abort_handler on Windows
}
int main() {
  install_fatal_error_handler(handle_llvm_crash, NULL);
  signal(SIGABRT, win_abort_handler);
  _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
  llvm_start_multithreaded();
  ContextRecoveryContext::Enable();
  // "safe" calls with RunSafely()
  ContextRecoveryContext::Disable();
  return 0;
}
Do you think it is a good idea to fold the abort signal handler and
signal/_set_abort_handler into CrashRecoveryContext?  The hand...