From ebafd2f1873d35cfc3f0063ee2feb7d36a01ba8f Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 15 Mar 2013 17:25:04 +0000 Subject: Fixing an issue where threads and frames could get out of sync and cause ValueObjects to fail to retrieve their values correctly llvm-svn: 177166 --- lldb/source/Target/StackFrameList.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/Target/StackFrameList.cpp') diff --git a/lldb/source/Target/StackFrameList.cpp b/lldb/source/Target/StackFrameList.cpp index 0a45d33ea65..913456d2419 100644 --- a/lldb/source/Target/StackFrameList.cpp +++ b/lldb/source/Target/StackFrameList.cpp @@ -250,6 +250,10 @@ StackFrameList::SetCurrentInlinedDepth (uint32_t new_depth) void StackFrameList::GetFramesUpTo(uint32_t end_idx) { + // this makes sure we do not fetch frames for an invalid thread + if (m_thread.IsValid() == false) + return; + // We've already gotten more frames than asked for, or we've already finished unwinding, return. if (m_frames.size() > end_idx || GetAllFramesFetched()) return; -- cgit v1.2.3