[Lldb-commits] [PATCH] D98987: [lldb] Call os_log_fault on lldb_assert

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 19 14:01:10 PDT 2021


JDevlieghere created this revision.
JDevlieghere added reviewers: LLDB, aprantl.
JDevlieghere requested review of this revision.

Call `os_log_fault` when an lldb assert fails. We piggyback off of the `LLVM_SUPPORT_XCODE_SIGNPOSTS` to for `os_log` support rather than introducing another check and define just for this. This patch also adds a small test using `lldb-test`.


https://reviews.llvm.org/D98987

Files:
  lldb/include/lldb/Utility/LLDBAssert.h
  lldb/source/Utility/LLDBAssert.cpp
  lldb/test/Shell/Error/assert.test
  lldb/tools/lldb-test/lldb-test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98987.331996.patch
Type: text/x-patch
Size: 3543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210319/e17f5129/attachment.bin>


More information about the lldb-commits mailing list