diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-05-22 14:05:28 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-05-22 14:05:28 +0000 |
commit | d9b228128b66dc895afbaaf5aeb84865eefde0f5 (patch) | |
tree | 0f1513a77dd4128bd2fc2a2e893ea77254ae1a15 /lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp | |
parent | 7380f25d2909a9b4a07efe89277e928ee572e9a8 (diff) | |
download | bcm5719-llvm-d9b228128b66dc895afbaaf5aeb84865eefde0f5.tar.gz bcm5719-llvm-d9b228128b66dc895afbaaf5aeb84865eefde0f5.zip |
Revert r270358 ("Fix an incorrectly used locking in HistoryThread and HistoryUnwind").
llvm-svn: 270359
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp b/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp index 4ae324575c0..62e4bc0a347 100644 --- a/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp +++ b/lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp @@ -65,7 +65,8 @@ bool HistoryUnwind::DoGetFrameInfoAtIndex (uint32_t frame_idx, lldb::addr_t& cfa, lldb::addr_t& pc) { // FIXME do not throw away the lock after we acquire it.. - std::lock_guard<std::recursive_mutex> guard(m_unwind_mutex); + std::unique_lock<std::recursive_mutex> guard(m_unwind_mutex); + guard.release(); if (frame_idx < m_pcs.size()) { cfa = frame_idx; |