[Lldb-commits] [lldb] r227863 - Lock the Platform mutex in PlatformDarwin::GetDeveloperDirectory().

Greg Clayton gclayton at apple.com
Mon Feb 2 13:18:46 PST 2015


Author: gclayton
Date: Mon Feb  2 15:18:46 2015
New Revision: 227863

URL: http://llvm.org/viewvc/llvm-project?rev=227863&view=rev
Log:
Lock the Platform mutex in PlatformDarwin::GetDeveloperDirectory().

Partial fix for: <rdar://problem/19575304>


Modified:
    lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

Modified: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp?rev=227863&r1=227862&r2=227863&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp Mon Feb  2 15:18:46 2015
@@ -987,6 +987,7 @@ PlatformDarwin::ARMGetSupportedArchitect
 const char *
 PlatformDarwin::GetDeveloperDirectory()
 {
+    Mutex::Locker locker (m_mutex);
     if (m_developer_directory.empty())
     {
         bool developer_dir_path_valid = false;





More information about the lldb-commits mailing list