From: Jonghyun Park Date: Fri, 10 Feb 2017 09:59:23 +0000 (+0900) Subject: Hide VirtualUnwindXXX for DACESS_COMPILE (dotnet/coreclr#9407) X-Git-Tag: submit/tizen/20210909.063632~11030^2~8130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce04d6f3a578282d4737dbb8d29441740bd312e9;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Hide VirtualUnwindXXX for DACESS_COMPILE (dotnet/coreclr#9407) Commit migrated from https://github.com/dotnet/coreclr/commit/e6965ec4891e3f2b14003822d3befbaa09c42dcb --- diff --git a/src/coreclr/src/vm/stackwalk.cpp b/src/coreclr/src/vm/stackwalk.cpp index 36af466..ffcd453 100644 --- a/src/coreclr/src/vm/stackwalk.cpp +++ b/src/coreclr/src/vm/stackwalk.cpp @@ -658,20 +658,7 @@ PCODE Thread::VirtualUnwindCallFrame(T_CONTEXT* pContext, return uControlPc; } -#ifdef DACCESS_COMPILE - -PCODE Thread::VirtualUnwindLeafCallFrame(T_CONTEXT* pContext) -{ - DacNotImpl(); - return 0; -} -UINT_PTR Thread::VirtualUnwindToFirstManagedCallFrame(T_CONTEXT* pContext) -{ - DacNotImpl(); - return 0; -} - -#else // !DACCESS_COMPILE +#ifndef DACCESS_COMPILE // static PCODE Thread::VirtualUnwindLeafCallFrame(T_CONTEXT* pContext) @@ -796,7 +783,7 @@ UINT_PTR Thread::VirtualUnwindToFirstManagedCallFrame(T_CONTEXT* pContext) return uControlPc; } -#endif // DACCESS_COMPILE +#endif // !DACCESS_COMPILE #endif // WIN64EXCEPTIONS #ifdef _DEBUG diff --git a/src/coreclr/src/vm/threads.h b/src/coreclr/src/vm/threads.h index 51116e1..0d0dd30 100644 --- a/src/coreclr/src/vm/threads.h +++ b/src/coreclr/src/vm/threads.h @@ -3615,10 +3615,12 @@ public: static PCODE VirtualUnwindCallFrame(T_CONTEXT* pContext, T_KNONVOLATILE_CONTEXT_POINTERS* pContextPointers = NULL, EECodeInfo * pCodeInfo = NULL); static UINT_PTR VirtualUnwindCallFrame(PREGDISPLAY pRD, EECodeInfo * pCodeInfo = NULL); +#ifndef DACCESS_COMPILE static PCODE VirtualUnwindLeafCallFrame(T_CONTEXT* pContext); static PCODE VirtualUnwindNonLeafCallFrame(T_CONTEXT* pContext, T_KNONVOLATILE_CONTEXT_POINTERS* pContextPointers = NULL, PT_RUNTIME_FUNCTION pFunctionEntry = NULL, UINT_PTR uImageBase = NULL); static UINT_PTR VirtualUnwindToFirstManagedCallFrame(T_CONTEXT* pContext); +#endif // DACCESS_COMPILE #endif // WIN64EXCEPTIONS // During a , this thread must not be asynchronously