按照书上面的代码顺利完成了这个例子的调试。不过有个地方感到不解。为什么只能运行命令
u `hiint3!HiInt3.cpp:11` 其他的诸如u `hiint3!HiInt3.cpp:1`没有一个能成功的。全部都返回No information found error at '`hiint3!HiInt3.cpp:1`'
*** WARNING: Unable to verify checksum for HiInt3.exe 0:000> u `hiint3!HiInt3.cpp:11` HiInt3!main+0x19 [C:\dig\dbg\author\code\chap04\HiInt3\HiInt3.cpp @ 11]: 00401029 681c204200 push offset HiInt3!`string' (0042201c) 0040102e e84d000000 call HiInt3!printf (00401080) 00401033 83c404 add esp,4 00401036 8bc0 mov eax,eax 00401038 cd03 int 3 0040103a 90 nop 0040103b 90 nop 0040103c 8bf4 mov esi,esp 0:000> u `hiint3!HiInt3.cpp:1` No information found error at '`hiint3!HiInt3.cpp:1`' 0:000> u `hiint3!HiInt3.cpp:12` No information found error at '`hiint3!HiInt3.cpp:12`' 0:000> u `hiint3!HiInt3.cpp:20` No information found error at '`hiint3!HiInt3.cpp:20`' 0:000> da 0042201c 0042201c "Hello INT 3!." 0:000> u hiint3 HiInt3!ILT+0(_main) (HiInt3+0x0): 00400000 4d dec ebp HiInt3!ILT+0(_main) (HiInt3+0x1): 00400001 5a pop edx HiInt3!ILT+0(_main) (HiInt3+0x2): 00400002 90 nop HiInt3!ILT+0(_main) (HiInt3+0x3): 00400003 0003 add byte ptr [ebx],al HiInt3!ILT+0(_main) (HiInt3+0x5): 00400005 0000 add byte ptr [eax],al HiInt3!ILT+0(_main) (HiInt3+0x7): 00400007 000400 add byte ptr [eax+eax],al HiInt3!ILT+0(_main) (HiInt3+0xa): 0040000a 0000 add byte ptr [eax],al HiInt3!ILT+0(_main) (HiInt3+0xc): 0040000c ff ???
|