Loading the executable into WinDbg
•icrosoft (R) Windows Debugger  Version 6.4.0007.2
•Copyright (c) Microsoft Corporation. All rights reserved.
•
•CommandLine: C:\dmitri\training-64\Part1\Project1\ArithmeticProject.exe
•Symbol search path is: SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols
•Executable search path is:
•ModLoad: 00000000`00400000 00000000`00405000   ArithmeticProject.exe
•ModLoad: 00000000`78ec0000 00000000`78ff9000   ntdll.dll
•ModLoad: 00000000`78d40000 00000000`78eb2000   C:\W2K3\system32\kernel32.dll
•(3470.3b54): Break instruction exception - code 80000003 (first chance)
•ntdll!DbgBreakPoint:
•00000000`78ef3320 cc               int     3
•
•0:000> u main
•ArithmeticProject!main [C:\dmitri\training-64\Part1\Project1\ArithmeticProject.asm @ 13]:
•00000000`00401010 48c705e52f000001000000 mov qword ptr [ArithmeticProject!a (0000000000404000)],0x1
•00000000`0040101b 48c705e22f000001000000 mov qword ptr [ArithmeticProject!b (0000000000404008)],0x1
•00000000`00401026 488b05d32f0000         mov rax,[ArithmeticProject!a (0000000000404000)]
•00000000`0040102d 480105d42f0000         add [ArithmeticProject!b (0000000000404008)],rax
•00000000`00401034 48ffc0                 inc     rax
•00000000`00401037 48f72dca2f0000         imul qword ptr [ArithmeticProject!b (0000000000404008)]
•00000000`0040103e 488905c32f0000         mov [ArithmeticProject!b (0000000000404008)],rax
•00000000`00401045 c3                     ret
•
•0:000> bp 00000000`00401010
•
•0:000> g
•Breakpoint 0 hit
•ArithmeticProject!main:
•00000000`00401010 48c705e52f000001000000 mov qword ptr [ArithmeticProject!a (0000000000404000)],0x1 ds:00000000`00404000=0000000000000000
•
•0:000> u
•ArithmeticProject!main [C:\dmitri\training-64\Part1\Project1\ArithmeticProject.asm @ 13]:
•00000000`00401010 48c705e52f000001000000 mov qword ptr [ArithmeticProject!a (0000000000404000)],0x1
•00000000`0040101b 48c705e22f000001000000 mov qword ptr [ArithmeticProject!b (0000000000404008)],0x1
•00000000`00401026 488b05d32f0000         mov rax,[ArithmeticProject!a (0000000000404000)]
•00000000`0040102d 480105d42f0000         add [ArithmeticProject!b (0000000000404008)],rax
•00000000`00401034 48ffc0                 inc     rax
•00000000`00401037 48f72dca2f0000         imul qword ptr [ArithmeticProject!b (0000000000404008)]
•00000000`0040103e 488905c32f0000         mov [ArithmeticProject!b (0000000000404008)],rax
•00000000`00401045 c3                     ret