Fixes AV in sos for arm64
authorRahul Kumar <rahku@microsoft.com>
Fri, 10 Jun 2016 18:52:59 +0000 (11:52 -0700)
committerRahul Kumar <rahku@microsoft.com>
Fri, 10 Jun 2016 18:52:59 +0000 (11:52 -0700)
src/gcinfo/gcinfodumper.cpp

index 01e7c98..432e706 100644 (file)
@@ -300,7 +300,7 @@ PORTABILITY_ASSERT("GcInfoDumper::ReportPointerRecord is not implemented on this
                 pReg = *(SIZE_T**)(pContext + rgRegisters[iReg].cbContextOffset);
                 if (iEncodedReg == iSPRegister)
                 {
-                    pReg = (SIZE_T*)((BYTE*)pRD->pCurrentContext + rgRegisters[iEncodedReg].cbContextOffset);
+                    pReg = (SIZE_T*)((BYTE*)pRD->pCurrentContext + rgRegisters[iReg].cbContextOffset);
                 }
 #else
                 pReg = (SIZE_T*)(pContext + rgRegisters[iReg].cbContextOffset);