mtdbg: insert small delay after new process creation

git-svn-id: svn://kolibrios.org@6344 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2016-03-16 08:39:17 +00:00
parent 2c438d2074
commit 01a73f5dea

View File

@ -113,14 +113,6 @@ get_context:
ret ret
set_context: set_context:
;push 2
;pop ebx
;push 69
;pop eax
;mov ecx, [debuggee_pid]
;mov esi, context
;push 28h
;pop edx
mcall 69, 2, [debuggee_pid], 28h, context mcall 69, 2, [debuggee_pid], 28h, context
ret ret
@ -133,10 +125,6 @@ get_dump:
push edi push edi
rep stosb rep stosb
pop edi pop edi
;mov ecx, [debuggee_pid]
;mov al, 69
;push 6
;pop ebx
mcall 69, 6, [debuggee_pid] mcall 69, 6, [debuggee_pid]
cmp eax, -1 cmp eax, -1
jnz @f jnz @f
@ -248,6 +236,10 @@ do_reload:
.load_ok: .load_ok:
mov [debuggee_pid], eax mov [debuggee_pid], eax
mov [bSuspended], 1 mov [bSuspended], 1
mov eax, 5
mov ebx, 20
int 0x40
push ecx push ecx
call get_context call get_context
mov edi, oldcontext mov edi, oldcontext
@ -716,6 +708,9 @@ dbgmsgstart:
jz exception jz exception
dec eax dec eax
jz terminated jz terminated
dec eax
jnz dbg_notify
mov [bSuspended], 1 mov [bSuspended], 1
cmp [bAfterGo], 0 cmp [bAfterGo], 0
jnz after_go_exception jnz after_go_exception
@ -753,6 +748,13 @@ dbgmsgstart:
push esi push esi
jmp exception.done_draw jmp exception.done_draw
dbg_notify:
int3
add esi, 32
push esi
jmp dbgmsgend
; TODO: make it local ; TODO: make it local
terminated: terminated:
push esi push esi