summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorJohn Chen <jochen@microsoft.com>2016-04-18 16:38:39 -0700
committerJohn Chen <jochen@microsoft.com>2016-04-18 16:38:39 -0700
commitcd998ae421bb8fb68f170de8f016940084cf19e6 (patch)
tree2f1aaacfe64974b0e2062e22584a68aad8d7ccef /src/debug
parent83e52facfec1ae6002ed9d0a474c300ab3dbe2fe (diff)
downloadcoreclr-cd998ae421bb8fb68f170de8f016940084cf19e6.tar.gz
coreclr-cd998ae421bb8fb68f170de8f016940084cf19e6.tar.bz2
coreclr-cd998ae421bb8fb68f170de8f016940084cf19e6.zip
Fix nidump to avoid crashing while working with Ready to Run images
[tfs-changeset: 1597064]
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/daccess/nidump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/daccess/nidump.cpp b/src/debug/daccess/nidump.cpp
index 9b4fe1c176..29c326debe 100644
--- a/src/debug/daccess/nidump.cpp
+++ b/src/debug/daccess/nidump.cpp
@@ -9324,7 +9324,7 @@ void NativeImageDumper::DumpReadyToRun()
IMAGE_DATA_DIRECTORY * pEntryPointsDir = FindReadyToRunSection(READYTORUN_SECTION_METHODDEF_ENTRYPOINTS);
if (pEntryPointsDir != NULL)
- m_methodDefEntryPoints = NativeFormat::NativeArray(&m_nativeReader, pEntryPointsDir->VirtualAddress);
+ m_methodDefEntryPoints = NativeFormat::NativeArray((TADDR)&m_nativeReader, pEntryPointsDir->VirtualAddress);
DisplayStartCategory("NativeInfo", NATIVE_INFO);