From 42ff38aa22ca848212b27c3fbe5e7f51b1f79ce1 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Wed, 16 Mar 2016 08:48:55 +0000 Subject: [PATCH] kernel: mtdbg support code git-svn-id: svn://kolibrios.org@6345 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/taskman.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/core/taskman.inc b/kernel/trunk/core/taskman.inc index 8f645d56d4..81be5638c1 100644 --- a/kernel/trunk/core/taskman.inc +++ b/kernel/trunk/core/taskman.inc @@ -950,6 +950,13 @@ common_app_entry: .cleanup: stdcall free_kernel_space, [ebp+APP_HDR.img_base] stdcall kernel_free, ebp + + mov ebx, [current_slot] + cmp [ebx+APPDATA.debugger_slot], 0 + je .exit + mov eax, [TASK_BASE] + mov [eax+TASKDATA.state], 1 + call change_task .exit: popad iretd @@ -1090,7 +1097,6 @@ proc set_app_params stdcall,slot:dword, params:dword, flags:dword ; set if debuggee test byte [flags], 1 jz .no_debug - inc edx ; process state - suspended mov eax, [CURRENT_TASK] mov [SLOT_BASE+ebx*8+APPDATA.debugger_slot], eax .no_debug: