diff options
Diffstat (limited to 'lldb/source/Target/StackFrameList.cpp')
-rw-r--r-- | lldb/source/Target/StackFrameList.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |