From e89941b3bbe183cc9adf8ddd9ce4649f18d673e3 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 2 Feb 2015 21:18:46 +0000 Subject: [PATCH] Lock the Platform mutex in PlatformDarwin::GetDeveloperDirectory(). Partial fix for: llvm-svn: 227863 --- lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp index 5966466..14d1573 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp @@ -987,6 +987,7 @@ PlatformDarwin::ARMGetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch const char * PlatformDarwin::GetDeveloperDirectory() { + Mutex::Locker locker (m_mutex); if (m_developer_directory.empty()) { bool developer_dir_path_valid = false; -- 2.7.4