INT 3(手工设置断点)

int _tmain(int argc, _TCHAR* argv[])

{

        _asm INT 3;

printf("hello INT 3!\n");

system("pause");

return 0;

}

cpu遇到INT 3指令是会把执行权转交给调试器

反汇编窗口:

_asm INT 3;

00AF141E  int         3   

程序指针寄存器的值也是: 00AF141E  

EAX = CCCCCCCC

 EBX = 7EFDE000 

ECX = 00000000 

EDX = 00000001

ESI = 00000000 

EDI = 002AFDA8 

EIP = 00AF141E 

ESP = 002AFCDC 

EBP = 002AFDA8

EFL = 00000206 


转载于:https://my.oschina.net/u/1046770/blog/350060

你可能感兴趣的:(INT 3(手工设置断点))