[PATCH] D70568: [Support] Possibly use exception handler in the Crash Recovery Context in the same way as global exceptions

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 14:03:12 PST 2019


aganea created this revision.
aganea added reviewers: hans, rnk, thakis.
Herald added subscribers: llvm-commits, cfe-commits, jfb, arphaman, hiraditya.
Herald added a reviewer: jfb.
Herald added projects: clang, LLVM.
aganea edited the summary of this revision.
Herald added a subscriber: dexonsmith.

This is a support patch for D69825 <https://reviews.llvm.org/D69825>.
It handles an exception in the same way as the global exception handler (same side-effect, print call stack & cleanup), and can return the exception code.
It enables `CrashRecoveryContext` exceptions by default (instead of disabled before) - however the exception handlers are lazily installed on the first creation of a `CrashRecoveryContext`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70568

Files:
  clang/test/Modules/signal.m
  clang/tools/libclang/CIndex.cpp
  llvm/include/llvm/Support/CrashRecoveryContext.h
  llvm/include/llvm/Support/Signals.h
  llvm/lib/Support/CrashRecoveryContext.cpp
  llvm/lib/Support/Unix/Signals.inc
  llvm/lib/Support/Windows/Signals.inc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70568.230533.patch
Type: text/x-patch
Size: 14044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191121/cf618d51/attachment.bin>


More information about the llvm-commits mailing list