[Lldb-commits] [lldb] r353783 - [Thread] Update the correct variable
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 11 17:04:57 PST 2019
Author: jdevlieghere
Date: Mon Feb 11 17:04:57 2019
New Revision: 353783
URL: http://llvm.org/viewvc/llvm-project?rev=353783&view=rev
Log:
[Thread] Update the correct variable
The new shared pointer was assigning to the temporary instead of the
member (m_curr_frames_sp).
Modified:
lldb/trunk/source/Target/Thread.cpp
Modified: lldb/trunk/source/Target/Thread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Thread.cpp?rev=353783&r1=353782&r2=353783&view=diff
==============================================================================
--- lldb/trunk/source/Target/Thread.cpp (original)
+++ lldb/trunk/source/Target/Thread.cpp Mon Feb 11 17:04:57 2019
@@ -1600,15 +1600,13 @@ void Thread::CalculateExecutionContext(E
}
StackFrameListSP Thread::GetStackFrameList() {
- StackFrameListSP frame_list_sp;
std::lock_guard<std::recursive_mutex> guard(m_frame_mutex);
if (!m_curr_frames_sp)
- frame_list_sp =
+ m_curr_frames_sp =
std::make_shared<StackFrameList>(*this, m_prev_frames_sp, true);
- frame_list_sp = m_curr_frames_sp;
- return frame_list_sp;
+ return m_curr_frames_sp;
}
void Thread::ClearStackFrames() {
More information about the lldb-commits
mailing list