[PATCH] D48446: [ubsan] Add support for reporting diagnostics to a monitor process

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 21 10:58:07 PDT 2018


vsk created this revision.
vsk added reviewers: kubamracek, vitalybuka.
Herald added a subscriber: mgorny.

Add support to the ubsan runtime for reporting diagnostics to a monitor
process (e.g a debugger).

The Xcode IDE uses this by setting a breakpoint on __ubsan_on_report and
collecting diagnostic information via __ubsan_get_current_report_data,
which it then surfaces to users in the editor UI.

Testing for this functionality already exists in upstream lldb, here:
lldb/packages/Python/lldbsuite/test/functionalities/ubsan

Apart from that, this is `ninja check-ubsan` clean.


https://reviews.llvm.org/D48446

Files:
  lib/ubsan/CMakeLists.txt
  lib/ubsan/ubsan_diag.cc
  lib/ubsan/ubsan_diag.h
  lib/ubsan/ubsan_handlers.cc
  lib/ubsan/ubsan_handlers_cxx.cc
  lib/ubsan/ubsan_interface.inc
  lib/ubsan/ubsan_monitor.cc
  lib/ubsan/ubsan_monitor.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48446.152347.patch
Type: text/x-patch
Size: 19747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180621/3e57dcad/attachment.bin>


More information about the llvm-commits mailing list