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;


_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to