Don't allow two threads to create/use the section list before it has been fully populated.

<rdar://problem/16937203>

llvm-svn: 211043
This commit is contained in:
Greg Clayton
2014-06-16 19:44:24 +00:00
parent b45c3b74b4
commit c72f713068

View File

@@ -605,7 +605,10 @@ ObjectFile::GetSectionList()
{
ModuleSP module_sp(GetModule());
if (module_sp)
{
lldb_private::Mutex::Locker locker(module_sp->GetMutex());
CreateSections(*module_sp->GetUnifiedSectionList());
}
}
return m_sections_ap.get();
}