[all-commits] [llvm/llvm-project] b0a926: sanitizer_common: trap on CHECK failure

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Mon Oct 25 05:51:54 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0a926adac8a286910098087f5c1277b29a5e9c3
      https://github.com/llvm/llvm-project/commit/b0a926adac8a286910098087f5c1277b29a5e9c3
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp

  Log Message:
  -----------
  sanitizer_common: trap on CHECK failure

Trapping on CHECK failure makes it more convinient to use with gdb
(no need to set a breakpoint each time). Without a debugger attached
trap should terminate the program as well.

Reviewed By: melver

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




More information about the All-commits mailing list