From 01a73f5deaf95ff71e920ca9cc2a76ec1c1e6d5b Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Wed, 16 Mar 2016 08:39:17 +0000 Subject: [PATCH] mtdbg: insert small delay after new process creation git-svn-id: svn://kolibrios.org@6344 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/mtdbg/mtdbg.asm | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/programs/develop/mtdbg/mtdbg.asm b/programs/develop/mtdbg/mtdbg.asm index e7aeb5b451..040e40b020 100644 --- a/programs/develop/mtdbg/mtdbg.asm +++ b/programs/develop/mtdbg/mtdbg.asm @@ -113,14 +113,6 @@ get_context: ret 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 ret @@ -133,10 +125,6 @@ get_dump: push edi rep stosb pop edi - ;mov ecx, [debuggee_pid] - ;mov al, 69 - ;push 6 - ;pop ebx mcall 69, 6, [debuggee_pid] cmp eax, -1 jnz @f @@ -248,6 +236,10 @@ do_reload: .load_ok: mov [debuggee_pid], eax mov [bSuspended], 1 + mov eax, 5 + mov ebx, 20 + int 0x40 + push ecx call get_context mov edi, oldcontext @@ -716,6 +708,9 @@ dbgmsgstart: jz exception dec eax jz terminated + dec eax + jnz dbg_notify + mov [bSuspended], 1 cmp [bAfterGo], 0 jnz after_go_exception @@ -753,6 +748,13 @@ dbgmsgstart: push esi jmp exception.done_draw +dbg_notify: + int3 + add esi, 32 + push esi + jmp dbgmsgend + + ; TODO: make it local terminated: push esi