summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-05-22 23:54:17 +0000
committerGreg Clayton <gclayton@apple.com>2014-05-22 23:54:17 +0000
commite756aa35717fb67d524cee3a95c006d3c4439db1 (patch)
treeb22201811a721a151a5fda6be7db069db9544b31 /lldb
parentb73c973d3b86eacdc08a69266de40fe91ad992c7 (diff)
downloadbcm5719-llvm-e756aa35717fb67d524cee3a95c006d3c4439db1.tar.gz
bcm5719-llvm-e756aa35717fb67d524cee3a95c006d3c4439db1.zip
Make sure SectionLoadHistory::GetCurrentSectionLoadList () is thread safe.
<rdar://problem/15818525> llvm-svn: 209485
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Target/SectionLoadHistory.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Target/SectionLoadHistory.cpp b/lldb/source/Target/SectionLoadHistory.cpp
index 527614e6ceb..1e5ade70bf1 100644
--- a/lldb/source/Target/SectionLoadHistory.cpp
+++ b/lldb/source/Target/SectionLoadHistory.cpp
@@ -108,6 +108,7 @@ SectionLoadList &
SectionLoadHistory::GetCurrentSectionLoadList ()
{
const bool read_only = true;
+ Mutex::Locker locker(m_mutex);
SectionLoadList *section_load_list = GetSectionLoadListForStopID (eStopIDNow, read_only);
assert(section_load_list != NULL);
return *section_load_list;
OpenPOWER on IntegriCloud