From eccd691079883c84b0a10513427691694d0a7ba3 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 15 Jun 2020 15:37:49 -0700 Subject: [PATCH] Fixed hot swapping fix --- IDEHelper/WinDebugger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IDEHelper/WinDebugger.cpp b/IDEHelper/WinDebugger.cpp index da40a710..4ebee8e4 100644 --- a/IDEHelper/WinDebugger.cpp +++ b/IDEHelper/WinDebugger.cpp @@ -1107,9 +1107,7 @@ void WinDebugger::HotLoad(const Array& objectFiles, int hotIdx) for (auto dwarf : mDebugTarget->mDbgModules) dwarf->RevertWritingEnable(); - - mHotThreadStates.Clear(); - + int blockAllocSinceClean = mDebugTarget->mHotHeap->mBlockAllocIdx - mDebugTarget->mLastHotHeapCleanIdx; // Clean up the hot heap every 64MB int blocksBetweenCleans = (64 * 1024 * 1024) / HotHeap::BLOCK_SIZE; @@ -1142,6 +1140,8 @@ void WinDebugger::HotLoad(const Array& objectFiles, int hotIdx) ::ResumeThread(threadInfo->mHThread); } + mHotThreadStates.Clear(); + if (IsPaused()) { ClearCallStack();