diff options
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/ThreadMemory.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/ThreadMemory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp b/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp index 6afa01d49b4..7ab5db73fcd 100644 --- a/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp +++ b/lldb/source/Plugins/Process/Utility/ThreadMemory.cpp @@ -135,7 +135,10 @@ ThreadMemory::GetPrivateStopReason () void ThreadMemory::RefreshStateAfterStop() { - RegisterContextSP reg_ctx_sp(GetRegisterContext()); + // Don't fetch the registers by calling Thread::GetRegisterContext() below. + // We might not have fetched any registers yet and we don't want to fetch + // the registers just to call invalidate on them... + RegisterContextSP reg_ctx_sp(m_reg_context_sp); if (reg_ctx_sp) { const bool force = true; |