diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-05-22 14:19:11 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-05-22 14:19:11 +0000 |
commit | 00d7c563d25475cd686fb5c5a61d68dbbcbd8874 (patch) | |
tree | 4aecbb06a36ee4bc9af6fa91f1aabfddfacd95e2 /lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp | |
parent | d9b228128b66dc895afbaaf5aeb84865eefde0f5 (diff) | |
download | bcm5719-llvm-00d7c563d25475cd686fb5c5a61d68dbbcbd8874.tar.gz bcm5719-llvm-00d7c563d25475cd686fb5c5a61d68dbbcbd8874.zip |
A better fix of incorrectly used locking in HistoryThread and HistoryUnwind.
llvm-svn: 270363
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp b/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp index 62e4bc0a347..01d8c3ebdcd 100644 --- a/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp +++ b/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp @@ -66,7 +66,7 @@ HistoryUnwind::DoGetFrameInfoAtIndex (uint32_t frame_idx, lldb::addr_t& cfa, lld { // FIXME do not throw away the lock after we acquire it.. std::unique_lock<std::recursive_mutex> guard(m_unwind_mutex); - guard.release(); + guard.unlock(); if (frame_idx < m_pcs.size()) { cfa = frame_idx; |