diff options
author | dotnet-bot <dotnet-bot@microsoft.com> | 2017-11-03 19:12:39 +0300 |
---|---|---|
committer | dotnet-bot <dotnet-bot@microsoft.com> | 2017-11-03 19:12:39 +0300 |
commit | 31b20c5d8f3194183bd66632facf00824bddfde9 (patch) | |
tree | de41c0c4397c4418e124cd8e6b409ace6648ef7a /src/Native/Runtime/windows | |
parent | 2c6a095c32a912a5ae17b1aba123cb7cd96a3977 (diff) |
ProjectX: New GetOsModuleHandle API to ICodeManager
The new GetOsModuleHandle API is used by the StackTraceMetadata code in both ProjectN and ProjectX.
[tfs-changeset: 1680143]
Diffstat (limited to 'src/Native/Runtime/windows')
-rw-r--r-- | src/Native/Runtime/windows/CoffNativeCodeManager.cpp | 5 | ||||
-rw-r--r-- | src/Native/Runtime/windows/CoffNativeCodeManager.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/Native/Runtime/windows/CoffNativeCodeManager.cpp b/src/Native/Runtime/windows/CoffNativeCodeManager.cpp index d0d8ff81c..e02412904 100644 --- a/src/Native/Runtime/windows/CoffNativeCodeManager.cpp +++ b/src/Native/Runtime/windows/CoffNativeCodeManager.cpp @@ -682,6 +682,11 @@ bool CoffNativeCodeManager::EHEnumNext(EHEnumState * pEHEnumState, EHClause * pE return true; } +PTR_VOID CoffNativeCodeManager::GetOsModuleHandle() +{ + return dac_cast<PTR_VOID>(m_moduleBase); +} + PTR_VOID CoffNativeCodeManager::GetMethodStartAddress(MethodInfo * pMethodInfo) { CoffNativeMethodInfo * pNativeMethodInfo = (CoffNativeMethodInfo *)pMethodInfo; diff --git a/src/Native/Runtime/windows/CoffNativeCodeManager.h b/src/Native/Runtime/windows/CoffNativeCodeManager.h index 31261614d..81b4ee625 100644 --- a/src/Native/Runtime/windows/CoffNativeCodeManager.h +++ b/src/Native/Runtime/windows/CoffNativeCodeManager.h @@ -96,4 +96,6 @@ public: void * GetClasslibFunction(ClasslibFunctionId functionId); PTR_VOID GetAssociatedData(PTR_VOID ControlPC); + + PTR_VOID GetOsModuleHandle(); }; |