From f8c62ea5dde630a2337a739d8ddfd585aa8415b7 Mon Sep 17 00:00:00 2001 From: Igor Kulaychuk Date: Wed, 13 Jun 2018 20:56:18 +0300 Subject: [PATCH] Remove useless code --- src/debug/netcoredbg/frames.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/debug/netcoredbg/frames.cpp b/src/debug/netcoredbg/frames.cpp index f86a46c..7b3c11e 100644 --- a/src/debug/netcoredbg/frames.cpp +++ b/src/debug/netcoredbg/frames.cpp @@ -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; } -- 2.7.4