forked from KolibriOS/kolibrios
kernel: mtdbg support code
git-svn-id: svn://kolibrios.org@6345 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
01a73f5dea
commit
42ff38aa22
@ -950,6 +950,13 @@ common_app_entry:
|
|||||||
.cleanup:
|
.cleanup:
|
||||||
stdcall free_kernel_space, [ebp+APP_HDR.img_base]
|
stdcall free_kernel_space, [ebp+APP_HDR.img_base]
|
||||||
stdcall kernel_free, ebp
|
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:
|
.exit:
|
||||||
popad
|
popad
|
||||||
iretd
|
iretd
|
||||||
@ -1090,7 +1097,6 @@ proc set_app_params stdcall,slot:dword, params:dword, flags:dword
|
|||||||
; set if debuggee
|
; set if debuggee
|
||||||
test byte [flags], 1
|
test byte [flags], 1
|
||||||
jz .no_debug
|
jz .no_debug
|
||||||
inc edx ; process state - suspended
|
|
||||||
mov eax, [CURRENT_TASK]
|
mov eax, [CURRENT_TASK]
|
||||||
mov [SLOT_BASE+ebx*8+APPDATA.debugger_slot], eax
|
mov [SLOT_BASE+ebx*8+APPDATA.debugger_slot], eax
|
||||||
.no_debug:
|
.no_debug:
|
||||||
|
Loading…
Reference in New Issue
Block a user