From 3949cb61a5dabe2bdd84d91e4b26e2f242a48c4d Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 7 Nov 2016 16:25:01 +0000 Subject: Fix an issue where LLDB would hang trying to launch tvOS simulator binaries llvm-svn: 286116 --- lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp') diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp index 3ed81e6fff7..b5ab04c96c0 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.cpp @@ -150,7 +150,7 @@ const char *PlatformAppleTVSimulator::GetDescriptionStatic() { /// Default Constructor //------------------------------------------------------------------ PlatformAppleTVSimulator::PlatformAppleTVSimulator() - : PlatformDarwin(true), m_sdk_directory() {} + : PlatformDarwin(true), m_sdk_dir_mutex(), m_sdk_directory() {} //------------------------------------------------------------------ /// Destructor. @@ -261,7 +261,7 @@ EnumerateDirectoryCallback(void *baton, FileSpec::FileType file_type, } const char *PlatformAppleTVSimulator::GetSDKDirectoryAsCString() { - std::lock_guard guard(m_mutex); + std::lock_guard guard(m_sdk_dir_mutex); if (m_sdk_directory.empty()) { const char *developer_dir = GetDeveloperDirectory(); if (developer_dir) { -- cgit v1.2.3