Remove useless code
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Wed, 13 Jun 2018 17:56:18 +0000 (20:56 +0300)
committerIgor Kulaychuk <i.kulaychuk@samsung.com>
Wed, 13 Jun 2018 17:56:18 +0000 (20:56 +0300)
src/debug/netcoredbg/frames.cpp

index f86a46c..7b3c11e 100644 (file)
@@ -322,9 +322,10 @@ HRESULT WalkFrames(ICorDebugThread *pThread, WalkFramesCallback cb)
         IfFailRet(UnwindNativeFrames(pThread, GetSP(&ctxUnmanagedChain), pEndVal, nFrames));
     IfFailRet(StitchInternalFrames(pThread, iFrameCache, nFrames, cb));
 
-    nFrames.clear();
-    memset(&ctxUnmanagedChain, 0, sizeof(CONTEXT));
-    ctxUnmanagedChainValid = false;
+    // After stitching frames they should be cleared like this:
+    // nFrames.clear();
+    // memset(&ctxUnmanagedChain, 0, sizeof(CONTEXT));
+    // ctxUnmanagedChainValid = false;
 
     return S_OK;
 }