diff options
Diffstat (limited to 'source/Plugins/DynamicLoader/Static')
| -rw-r--r-- | source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp | 4 | ||||
| -rw-r--r-- | source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h | 1 | ||||
| -rw-r--r-- | source/Plugins/DynamicLoader/Static/Makefile | 14 |
3 files changed, 2 insertions, 17 deletions
diff --git a/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp b/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp index 86cf45013a4df..daa21adf3a951 100644 --- a/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp +++ b/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.cpp @@ -102,8 +102,8 @@ DynamicLoaderStatic::LoadAllImagesAtFileAddresses () // Disable JIT for static dynamic loader targets m_process->SetCanJIT(false); - Mutex::Locker mutex_locker(module_list.GetMutex()); - + std::lock_guard<std::recursive_mutex> guard(module_list.GetMutex()); + const size_t num_modules = module_list.GetSize(); for (uint32_t idx = 0; idx < num_modules; ++idx) { diff --git a/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h b/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h index a7fdf4d221656..67694c96025c5 100644 --- a/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h +++ b/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h @@ -17,7 +17,6 @@ #include "lldb/Target/DynamicLoader.h" #include "lldb/Host/FileSpec.h" #include "lldb/Core/UUID.h" -#include "lldb/Host/Mutex.h" #include "lldb/Target/Process.h" class DynamicLoaderStatic : public lldb_private::DynamicLoader diff --git a/source/Plugins/DynamicLoader/Static/Makefile b/source/Plugins/DynamicLoader/Static/Makefile deleted file mode 100644 index 63972dfc5512c..0000000000000 --- a/source/Plugins/DynamicLoader/Static/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -##===- source/Plugins/DynamicLoader/Static/Makefile --------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LLDB_LEVEL := ../../../.. -LIBRARYNAME := lldbPluginDynamicLoaderStatic -BUILD_ARCHIVE = 1 - -include $(LLDB_LEVEL)/Makefile |
