Add ThreadSanitizer debugging support.

Description

Add ThreadSanitizer debugging support.

This patch adds ThreadSanitizer support into LLDB:

  • Adding a new InstrumentationRuntime plugin, ThreadSanitizerRuntime, in the same way ASan is implemented.
  • A breakpoint stops in __tsan_on_report, then we extract all sorts of information by evaluating an expression. We then populate this into StopReasonExtendedInfo.
  • SBThread gets a new API, SBThread::GetStopReasonExtendedBacktraces(), which returns TSan’s backtraces in the form of regular SBThreads. Non-TSan stop reasons return an empty collection.
  • Added some test cases.

Reviewed by Greg Clayton.

Details

Committed
kuba.breckaMar 23 2016, 8:36 AM
Parents
rL264161: [SCEV] Change the SCEV Predicates interfaces for conversion to AddRecExpr to…
Branches
Unknown
Tags
Unknown