Fixed an issue with the compiler which caused Int64[] and UInt64[] elements to get retrieved incorrectly.

This commit is contained in:
Sentinel209_cp 2014-10-14 10:30:55 +00:00
parent 5e26a7e5c4
commit b668b50b41
2 changed files with 9 additions and 3 deletions

View file

@ -450,8 +450,14 @@ namespace Cosmos.Debug.VSDebugEngine
else
{
if (m_variableInformation.IsReference) xData = mProcess.mDbgConnector.GetMemoryData(m_variableInformation.Pointer, 4, 4);
else xData = mProcess.mDbgConnector.GetStackData(OFFSET, 4);
if (m_variableInformation.IsReference)
{
xData = mProcess.mDbgConnector.GetMemoryData(m_variableInformation.Pointer, 4, 4);
}
else
{
xData = mProcess.mDbgConnector.GetStackData(OFFSET, 4);
}
if (xData == null)
{
propertyInfo.bstrValue = String.Format("Error! Stack data received was null!");

View file

@ -46,8 +46,8 @@ namespace Cosmos.IL2CPU.X86.IL
new CPUx86.Push { DestinationReg = CPUx86.Registers.EDX, DestinationIsIndirect = true };
break;
case 8:
new CPUx86.Push { DestinationReg = CPUx86.Registers.EDX, DestinationDisplacement = 4, DestinationIsIndirect = true };
new CPUx86.Push { DestinationReg = CPUx86.Registers.EDX, DestinationIsIndirect = true };
new CPUx86.Push { DestinationReg = CPUx86.Registers.EDX, DestinationDisplacement = 4, DestinationIsIndirect = true };
break;
}
}