修改 common\dyncode\dyncode.c 文件,在后面加Sleep(50)
void CodeBuild(dyncode* Code)
{
dyninst* p;
context* c = Context();
Code->Size = 0;
if (c->CodeFailed)
{
FreeInst();
return;
}
for (p=(dyninst*)c->CodeInstBegin;p;p=p->Next)
Code->Size += InstSize(p,Code->Size);
if (Code->Size > Code->Allocated)
{
FreeCode(Code);
Code->Allocated = (Code->Size + 511) & ~511;
Code->Code = (char*) CodeAlloc(Code->Allocated);
}
if (Code->Code)
{
char* Addr;
CodeLock(Code->Code,Code->Allocated);
Addr = Code->Code;
for (p=(dyninst*)c->CodeInstBegin;p;p=p->Next)
{
p->Address = Addr;
Addr += InstSize(p,Addr - Code->Code);
}
Sleep(50);