summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/SectionLoadHistory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/SectionLoadHistory.cpp')
-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