wrong variable value from debugger on x64
Hello everyone,
The command dv is not print the correct value for input parameters? Here is my WinDbg debug on x64 platform and source code. Any ideas about how to retrieve the correct value?
Code:
0:000> bp foo
0:000> bl
0 e 00000001`40001020 0001 (0001) 0:**** Test64bitDebug!foo
0:000> g
Breakpoint 0 hit
Test64bitDebug!foo:
00000001`40001020 89542410 mov dword ptr [rsp+10h],edx ss:00000000`0012fea8=cccccccc
0:000> dv
a = -858993460
b = -858993460
int foo (int a, int b)
{
return a+b;
}
int main()
{
int a1 = 100;
int b1 = a1 + 100;
foo (a1, b1);
return 0;
}
thanks in advance,
George