diff options
author | Pavel Labath <labath@google.com> | 2017-06-26 08:13:22 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-06-26 08:13:22 +0000 |
commit | 992e65aed1593010bf3ba610c2790f839587dd4c (patch) | |
tree | 35891093fadfad0495e5891cffd0a771bbb14f75 /lldb/source/Plugins/InstrumentationRuntime | |
parent | aea526c56ba71f98aa2542cbea06b401acf277b1 (diff) |
Shorten sanitizer plugin names
Summary:
The new UndefinedBehaviorSanitizer plugin was breaking file path length
limits, because it's (fairly long name) appears multiple times in the
path. Cmake ends up putting the object file at path
tools/lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/CMakeFiles/lldbPluginInstrumentationRuntimeUndefinedBehaviorSanitizer.dir/UndefinedBehaviorSanitizerRuntime.cpp.obj
which is 191 characters long and very dangerously close to the 260
character path limit on windows systems (also, just the include line for
that file was breaking the 80 character line limit).
This renames the sanitizer plugins to use shorter names (asan, ubsan,
tsan). I think this will still be quite understandable to everyone as
those are the names everyone uses to refer to them anyway.
Reviewers: zturner, kubamracek, jingham
Subscribers: lldb-commits, mgorny
Differential Revision: https://reviews.llvm.org/D34553
Diffstat (limited to 'lldb/source/Plugins/InstrumentationRuntime')
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/ASan/ASanRuntime.cpp (renamed from lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.cpp) | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/ASan/ASanRuntime.h (renamed from lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.h) | 0 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/ASan/CMakeLists.txt (renamed from lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/CMakeLists.txt) | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/CMakeLists.txt | 6 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/TSan/CMakeLists.txt (renamed from lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/CMakeLists.txt) | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.cpp (renamed from lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp) | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.h (renamed from lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h) | 0 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/UBSan/CMakeLists.txt (renamed from lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/CMakeLists.txt) | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.cpp (renamed from lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/UndefinedBehaviorSanitizerRuntime.cpp) | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.h (renamed from lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/UndefinedBehaviorSanitizerRuntime.h) | 0 |
10 files changed, 15 insertions, 15 deletions
diff --git a/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.cpp b/lldb/source/Plugins/InstrumentationRuntime/ASan/ASanRuntime.cpp index ef2c524c51e..af242d786a5 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.cpp +++ b/lldb/source/Plugins/InstrumentationRuntime/ASan/ASanRuntime.cpp @@ -1,4 +1,4 @@ -//===-- AddressSanitizerRuntime.cpp -----------------------------*- C++ -*-===// +//===-- ASanRuntime.cpp -----------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#include "AddressSanitizerRuntime.h" +#include "ASanRuntime.h" #include "lldb/Breakpoint/StoppointCallbackContext.h" #include "lldb/Core/Debugger.h" diff --git a/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.h b/lldb/source/Plugins/InstrumentationRuntime/ASan/ASanRuntime.h index 9fd21c06f30..9fd21c06f30 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/AddressSanitizerRuntime.h +++ b/lldb/source/Plugins/InstrumentationRuntime/ASan/ASanRuntime.h diff --git a/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/CMakeLists.txt b/lldb/source/Plugins/InstrumentationRuntime/ASan/CMakeLists.txt index 1adfc6ba532..dc7464fd193 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer/CMakeLists.txt +++ b/lldb/source/Plugins/InstrumentationRuntime/ASan/CMakeLists.txt @@ -1,5 +1,5 @@ -add_lldb_library(lldbPluginInstrumentationRuntimeAddressSanitizer PLUGIN - AddressSanitizerRuntime.cpp +add_lldb_library(lldbPluginInstrumentationRuntimeASan PLUGIN + ASanRuntime.cpp LINK_LIBS lldbBreakpoint diff --git a/lldb/source/Plugins/InstrumentationRuntime/CMakeLists.txt b/lldb/source/Plugins/InstrumentationRuntime/CMakeLists.txt index 4bca174bce9..55e8752e742 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/CMakeLists.txt +++ b/lldb/source/Plugins/InstrumentationRuntime/CMakeLists.txt @@ -1,4 +1,4 @@ -add_subdirectory(AddressSanitizer) -add_subdirectory(ThreadSanitizer) -add_subdirectory(UndefinedBehaviorSanitizer) +add_subdirectory(ASan) add_subdirectory(MainThreadChecker) +add_subdirectory(TSan) +add_subdirectory(UBSan) diff --git a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/CMakeLists.txt b/lldb/source/Plugins/InstrumentationRuntime/TSan/CMakeLists.txt index db7c4a2518a..4dcd34131b8 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/CMakeLists.txt +++ b/lldb/source/Plugins/InstrumentationRuntime/TSan/CMakeLists.txt @@ -1,5 +1,5 @@ -add_lldb_library(lldbPluginInstrumentationRuntimeThreadSanitizer PLUGIN - ThreadSanitizerRuntime.cpp +add_lldb_library(lldbPluginInstrumentationRuntimeTSan PLUGIN + TSanRuntime.cpp LINK_LIBS lldbBreakpoint diff --git a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp b/lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.cpp index 0ae9c00cf01..f60df046334 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp +++ b/lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.cpp @@ -1,4 +1,4 @@ -//===-- ThreadSanitizerRuntime.cpp ------------------------------*- C++ -*-===// +//===-- TSanRuntime.cpp -----------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#include "ThreadSanitizerRuntime.h" +#include "TSanRuntime.h" #include "Plugins/Process/Utility/HistoryThread.h" #include "lldb/Breakpoint/StoppointCallbackContext.h" diff --git a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h b/lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.h index 2a10582b65d..2a10582b65d 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.h +++ b/lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.h diff --git a/lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/CMakeLists.txt b/lldb/source/Plugins/InstrumentationRuntime/UBSan/CMakeLists.txt index 8f4b1a539ca..984bf86f83b 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/CMakeLists.txt +++ b/lldb/source/Plugins/InstrumentationRuntime/UBSan/CMakeLists.txt @@ -1,5 +1,5 @@ -add_lldb_library(lldbPluginInstrumentationRuntimeUndefinedBehaviorSanitizer PLUGIN - UndefinedBehaviorSanitizerRuntime.cpp +add_lldb_library(lldbPluginInstrumentationRuntimeUBSan PLUGIN + UBSanRuntime.cpp LINK_LIBS lldbBreakpoint diff --git a/lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/UndefinedBehaviorSanitizerRuntime.cpp b/lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.cpp index 2095ea04975..023af84179a 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/UndefinedBehaviorSanitizerRuntime.cpp +++ b/lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.cpp @@ -1,4 +1,4 @@ -//===-- UndefinedBehaviorSanitizerRuntime.cpp -------------------*- C++ -*-===// +//===-- UBSanRuntime.cpp ----------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#include "UndefinedBehaviorSanitizerRuntime.h" +#include "UBSanRuntime.h" #include "Plugins/Process/Utility/HistoryThread.h" #include "lldb/Breakpoint/StoppointCallbackContext.h" diff --git a/lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/UndefinedBehaviorSanitizerRuntime.h b/lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.h index 0c478bd57e8..0c478bd57e8 100644 --- a/lldb/source/Plugins/InstrumentationRuntime/UndefinedBehaviorSanitizer/UndefinedBehaviorSanitizerRuntime.h +++ b/lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.h |