69.4 and 69.5 now do not require debugging privileges

git-svn-id: svn://kolibrios.org@667 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond)
2007-10-27 22:54:42 +00:00
parent bafb2d78f4
commit eec9fdbabb
3 changed files with 20 additions and 25 deletions

View File

@@ -79,8 +79,11 @@ debug_terminate:
debug_suspend:
; in: ebx=pid
; destroys eax,ebx
call get_debuggee_slot
jc .ret
cli
mov eax, ebx
call pid_to_slot
test eax, eax
jz .ret
mov bl, [CURRENT_TASK+eax+TASKDATA.state] ; process state
test bl, bl
jz .1
@@ -110,9 +113,12 @@ do_resume:
debug_resume:
; in: ebx=pid
; destroys eax,ebx
call get_debuggee_slot
jc .ret
call do_resume
cli
mov eax, ebx
call pid_to_slot
test eax, eax
jz .ret
call do_resume
.ret: sti
ret