diff options
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/daccess/fntableaccess.cpp | 16 | ||||
-rw-r--r-- | src/debug/daccess/fntableaccess.h | 8 | ||||
-rw-r--r-- | src/debug/daccess/nidump.cpp | 2 |
3 files changed, 13 insertions, 13 deletions
diff --git a/src/debug/daccess/fntableaccess.cpp b/src/debug/daccess/fntableaccess.cpp index 66298832d2..e7b96ec3e0 100644 --- a/src/debug/daccess/fntableaccess.cpp +++ b/src/debug/daccess/fntableaccess.cpp @@ -143,7 +143,7 @@ static NTSTATUS OutOfProcessFunctionTableCallback_JIT(IN ReadMemoryFunction IN PVOID pUserContext, IN PVOID TableAddress, OUT PULONG pnEntries, - OUT PRUNTIME_FUNCTION* ppFunctions) + OUT PT_RUNTIME_FUNCTION* ppFunctions) { if (NULL == pnEntries) { return STATUS_INVALID_PARAMETER_3; } if (NULL == ppFunctions) { return STATUS_INVALID_PARAMETER_4; } @@ -179,7 +179,7 @@ static NTSTATUS OutOfProcessFunctionTableCallback_JIT(IN ReadMemoryFunction DWORD nEntries; DWORD index; DWORD_PTR pUnwindInfo; - PRUNTIME_FUNCTION pFunctions; + PT_RUNTIME_FUNCTION pFunctions; LONG64 lSmallestOffset; // @@ -217,7 +217,7 @@ static NTSTATUS OutOfProcessFunctionTableCallback_JIT(IN ReadMemoryFunction OutOfProcessFindHeader(fpReadMemory, pUserContext, Hp.pHdrMap, hdrOffset, hdrOffset); } - pFunctions = (PRUNTIME_FUNCTION)ClrHeapAlloc(ClrGetProcessHeap(), HEAP_ZERO_MEMORY, S_SIZE_T(nEntries) * S_SIZE_T(sizeof(RUNTIME_FUNCTION))); + pFunctions = (PT_RUNTIME_FUNCTION)ClrHeapAlloc(ClrGetProcessHeap(), HEAP_ZERO_MEMORY, S_SIZE_T(nEntries) * S_SIZE_T(sizeof(T_RUNTIME_FUNCTION))); *ppFunctions = pFunctions; *pnEntries = nEntries; @@ -274,7 +274,7 @@ static NTSTATUS OutOfProcessFunctionTableCallback_Stub(IN ReadMemoryFunction IN PVOID pUserContext, IN PVOID TableAddress, OUT PULONG pnEntries, - OUT PRUNTIME_FUNCTION* ppFunctions) + OUT PT_RUNTIME_FUNCTION* ppFunctions) { if (NULL == pnEntries) { return STATUS_INVALID_PARAMETER_3; } if (NULL == ppFunctions) { return STATUS_INVALID_PARAMETER_4; } @@ -292,7 +292,7 @@ static NTSTATUS OutOfProcessFunctionTableCallback_Stub(IN ReadMemoryFunction UINT nEntries = 0; UINT nEntriesAllocated = 0; - RUNTIME_FUNCTION *rgFunctions = NULL; + PT_RUNTIME_FUNCTION rgFunctions = NULL; for (int pass = 1; pass <= 2; pass++) { @@ -371,7 +371,7 @@ static NTSTATUS OutOfProcessFunctionTableCallback_Stub(IN ReadMemoryFunction _ASSERTE(!nEntriesAllocated); nEntriesAllocated = nEntries; - rgFunctions = (PRUNTIME_FUNCTION)ClrHeapAlloc(ClrGetProcessHeap(), HEAP_ZERO_MEMORY, S_SIZE_T(nEntries) * S_SIZE_T(sizeof(RUNTIME_FUNCTION))); + rgFunctions = (PT_RUNTIME_FUNCTION)ClrHeapAlloc(ClrGetProcessHeap(), HEAP_ZERO_MEMORY, S_SIZE_T(nEntries) * S_SIZE_T(sizeof(T_RUNTIME_FUNCTION))); nEntries = 0; } else @@ -397,7 +397,7 @@ BOOL ReadMemory(PVOID pUserContext, LPCVOID lpBaseAddress, PVOID lpBuffer, SIZE_ extern "C" NTSTATUS OutOfProcessFunctionTableCallback(IN HANDLE hProcess, IN PVOID TableAddress, OUT PULONG pnEntries, - OUT PRUNTIME_FUNCTION* ppFunctions) + OUT PT_RUNTIME_FUNCTION* ppFunctions) { return OutOfProcessFunctionTableCallbackEx(&ReadMemory, hProcess, TableAddress, pnEntries, ppFunctions); } @@ -406,7 +406,7 @@ extern "C" NTSTATUS OutOfProcessFunctionTableCallbackEx(IN ReadMemoryFunction IN PVOID pUserContext, IN PVOID TableAddress, OUT PULONG pnEntries, - OUT PRUNTIME_FUNCTION* ppFunctions) + OUT PT_RUNTIME_FUNCTION* ppFunctions) { if (NULL == pnEntries) { return STATUS_INVALID_PARAMETER_3; } if (NULL == ppFunctions) { return STATUS_INVALID_PARAMETER_4; } diff --git a/src/debug/daccess/fntableaccess.h b/src/debug/daccess/fntableaccess.h index 9e98e7c51f..0dbabdf8c9 100644 --- a/src/debug/daccess/fntableaccess.h +++ b/src/debug/daccess/fntableaccess.h @@ -53,7 +53,7 @@ typedef struct _FakeHpRealCodeHdr LPVOID phdrJitGCInfo; // changed from BYTE* LPVOID hdrMDesc; // changed from MethodDesc* DWORD nUnwindInfos; - RUNTIME_FUNCTION unwindInfos[0]; + T_RUNTIME_FUNCTION unwindInfos[0]; } FakeRealCodeHeader; typedef struct _FakeHpCodeHdr @@ -75,7 +75,7 @@ struct FakeStubUnwindInfoHeaderSuffix struct FakeStubUnwindInfoHeader { FakeStubUnwindInfoHeader *pNext; - RUNTIME_FUNCTION FunctionEntry; + T_RUNTIME_FUNCTION FunctionEntry; UNWIND_INFO UnwindInfo; // variable length }; @@ -200,7 +200,7 @@ static_assert_no_msg( FAKEDYNFNTABLE_STUB BOOL WINAPI DllMain(HINSTANCE hDLL, DWORD dwReason, LPVOID pReserved); //NTSTATUS OutOfProcessFindHeader(HANDLE hProcess, DWORD_PTR pMapIn, DWORD_PTR addr, DWORD_PTR &codeHead); -extern "C" NTSTATUS OutOfProcessFunctionTableCallback(IN HANDLE hProcess, IN PVOID TableAddress, OUT PULONG pnEntries, OUT PRUNTIME_FUNCTION* ppFunctions); +extern "C" NTSTATUS OutOfProcessFunctionTableCallback(IN HANDLE hProcess, IN PVOID TableAddress, OUT PULONG pnEntries, OUT PT_RUNTIME_FUNCTION* ppFunctions); // OutOfProcessFunctionTableCallbackEx is like the standard OS-defined OutOfProcessFunctionTableCallback, but rather @@ -209,7 +209,7 @@ extern "C" NTSTATUS OutOfProcessFunctionTableCallback(IN HANDLE hProcess, IN // pUserContext is passed directly to fpReadMemory, and the semantics of all other ReadMemoryFunction arguments (and return value) are // the same as those for kernel32!ReadProcessMemory. typedef BOOL (ReadMemoryFunction)(PVOID pUserContext, LPCVOID lpBaseAddress, PVOID lpBuffer, SIZE_T nSize, SIZE_T* lpNumberOfBytesRead); -extern "C" NTSTATUS OutOfProcessFunctionTableCallbackEx(IN ReadMemoryFunction fpReadMemory, IN PVOID pUserContext, IN PVOID TableAddress, OUT PULONG pnEntries, OUT PRUNTIME_FUNCTION* ppFunctions); +extern "C" NTSTATUS OutOfProcessFunctionTableCallbackEx(IN ReadMemoryFunction fpReadMemory, IN PVOID pUserContext, IN PVOID TableAddress, OUT PULONG pnEntries, OUT PT_RUNTIME_FUNCTION* ppFunctions); #endif // CHECK_DUPLICATED_STRUCT_LAYOUTS diff --git a/src/debug/daccess/nidump.cpp b/src/debug/daccess/nidump.cpp index 8dcac82865..9b4fe1c176 100644 --- a/src/debug/daccess/nidump.cpp +++ b/src/debug/daccess/nidump.cpp @@ -9315,7 +9315,7 @@ void NativeImageDumper::DumpReadyToRun() if (pRuntimeFunctionsDir != NULL) { m_pRuntimeFunctions = dac_cast<PTR_RUNTIME_FUNCTION>(m_decoder.GetDirectoryData(pRuntimeFunctionsDir)); - m_nRuntimeFunctions = pRuntimeFunctionsDir->Size / sizeof(RUNTIME_FUNCTION); + m_nRuntimeFunctions = pRuntimeFunctionsDir->Size / sizeof(T_RUNTIME_FUNCTION); } else { |