[all-commits] [llvm/llvm-project] a1f169: [Support] Optionally call signal handlers when a f...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Sat Jan 11 12:32:32 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a1f16998f371870ca4da8b3c00a093c607a36ddd
      https://github.com/llvm/llvm-project/commit/a1f16998f371870ca4da8b3c00a093c607a36ddd
  Author: Alexandre Ganea <alexandre.ganea at ubisoft.com>
  Date:   2020-01-11 (Sat, 11 Jan 2020)

  Changed paths:
    M llvm/include/llvm/Support/CrashRecoveryContext.h
    M llvm/include/llvm/Support/Signals.h
    M llvm/lib/Support/CrashRecoveryContext.cpp
    M llvm/lib/Support/Unix/Signals.inc
    M llvm/lib/Support/Windows/Signals.inc
    M llvm/unittests/Support/CrashRecoveryTest.cpp

  Log Message:
  -----------
  [Support] Optionally call signal handlers when a function wrapped by the the CrashRecoveryContext fails

This patch allows for handling a failure inside a CrashRecoveryContext in the same way as the global exception/signal handler. A failure will have the same side-effect, such as cleanup of temporarty file, printing callstack, calling relevant signal handlers, and finally returning an exception code. This is an optional feature, disabled by default.
This is a support patch for D69825.

Differential Revision: https://reviews.llvm.org/D70568




More information about the All-commits mailing list