[Lldb-commits] [PATCH] D23043: [InstrumentationRuntime] Refactor the API (Part 1/N) (NFCI)

Vedant Kumar via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 1 18:00:56 PDT 2016


vsk created this revision.
vsk added reviewers: kubabrecka, k8stone.
vsk added subscribers: lldb-commits, friss.

Adapters for instrumentation runtimes have to do two basic things:

  1) Load a runtime library.
  2) Install breakpoints in that library.

This logic is duplicated in the adapters for asan and tsan. Factor it
out and document bits of it to make it easier to add new adapters.

I tested this with check-lldb, and double-checked
testcases/functionalities/{a,t}san.

https://reviews.llvm.org/D23043

Files:
  include/lldb/Target/InstrumentationRuntime.h
  source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.cpp
  source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.h
  source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
  source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h
  source/Target/InstrumentationRuntime.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23043.66411.patch
Type: text/x-patch
Size: 11454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160802/f64c1eac/attachment-0001.bin>


More information about the lldb-commits mailing list