Skip to content

Commit da9ae02

Browse files
authored
Merge pull request #11835 from delcypher/dliew/rdar-163230807-wip
[BoundsSafety][LLDB] Implement instrumentation plugin for -fbounds-safety soft traps
2 parents d604b9b + d061ddb commit da9ae02

26 files changed

+1054
-45
lines changed

lldb/include/lldb/Utility/LLDBLog.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ enum class LLDBLog : Log::MaskType {
5050
OnDemand = Log::ChannelFlag<31>,
5151
Source = Log::ChannelFlag<32>,
5252
Disassembler = Log::ChannelFlag<33>,
53-
LLVM_MARK_AS_BITMASK_ENUM(Disassembler),
53+
InstrumentationRuntime = Log::ChannelFlag<34>,
54+
LLVM_MARK_AS_BITMASK_ENUM(InstrumentationRuntime),
5455
};
5556

5657
LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();

lldb/include/lldb/lldb-enumerations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ enum InstrumentationRuntimeType {
538538
eInstrumentationRuntimeTypeMainThreadChecker = 0x0003,
539539
eInstrumentationRuntimeTypeSwiftRuntimeReporting = 0x0004,
540540
eInstrumentationRuntimeTypeLibsanitizersAsan = 0x0005,
541+
eInstrumentationRuntimeTypeBoundsSafety = 0x0006,
541542
eNumInstrumentationRuntimeTypes
542543
};
543544

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
add_lldb_library(lldbPluginInstrumentationRuntimeBoundsSafety PLUGIN
2+
InstrumentationRuntimeBoundsSafety.cpp
3+
4+
LINK_LIBS
5+
lldbBreakpoint
6+
lldbCore
7+
lldbSymbol
8+
lldbTarget
9+
lldbPluginInstrumentationRuntimeUtility
10+
11+
CLANG_LIBS
12+
clangCodeGen
13+
)

0 commit comments

Comments
 (0)