Delete unused function check_region (it was commented out years ago) and stub calls of this function.
git-svn-id: svn://kolibrios.org@8840 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0aae2f3c46
commit
4dea14e6e3
@ -152,12 +152,6 @@ debug_getcontext:
|
||||
inc ebx ; 1 - get sse context
|
||||
; TODO legacy 32-bit FPU/MMX context
|
||||
.std_ctx:
|
||||
; push ecx
|
||||
; mov ecx, esi
|
||||
call check_region
|
||||
; pop ecx
|
||||
dec eax
|
||||
jnz .ret
|
||||
call get_debuggee_slot
|
||||
jc .ret
|
||||
|
||||
@ -233,12 +227,7 @@ debug_setcontext:
|
||||
; destroys eax,ecx,edx,esi,edi
|
||||
cmp edx, 28h
|
||||
jnz .ret
|
||||
; push ebx
|
||||
; mov ebx, edx
|
||||
call check_region
|
||||
; pop ebx
|
||||
dec eax
|
||||
jnz .ret
|
||||
|
||||
call get_debuggee_slot
|
||||
jc .stiret
|
||||
; mov esi, edx
|
||||
@ -363,12 +352,6 @@ debug_read_process_memory:
|
||||
; esi=address in debuggee
|
||||
; out: [esp+36]=sizeof(read)
|
||||
; destroys all
|
||||
; push ebx
|
||||
; mov ebx, esi
|
||||
call check_region
|
||||
; pop ebx
|
||||
dec eax
|
||||
jnz .err
|
||||
call get_debuggee_slot
|
||||
jc .err
|
||||
shr eax, 5
|
||||
@ -389,12 +372,6 @@ debug_write_process_memory:
|
||||
; esi=address in debuggee
|
||||
; out: [esp+36]=sizeof(write)
|
||||
; destroys all
|
||||
; push ebx
|
||||
; mov ebx, esi
|
||||
call check_region
|
||||
; pop ebx
|
||||
dec eax
|
||||
jnz debug_read_process_memory.err
|
||||
call get_debuggee_slot
|
||||
jc debug_read_process_memory.err
|
||||
shr eax, 5
|
||||
|
@ -511,48 +511,6 @@ pid_to_slot:
|
||||
pop ebx
|
||||
ret
|
||||
|
||||
check_region:
|
||||
;input:
|
||||
; esi - start of buffer
|
||||
; edx - size of buffer
|
||||
;result:
|
||||
; eax = 1 region lays in app memory
|
||||
; eax = 0 region don't lays in app memory
|
||||
|
||||
mov eax, 1
|
||||
ret
|
||||
if 0
|
||||
mov eax, [CURRENT_TASK]
|
||||
; jmp check_process_region
|
||||
;-----------------------------------------------------------------------------
|
||||
;check_process_region:
|
||||
;input:
|
||||
; eax - slot
|
||||
; esi - start of buffer
|
||||
; edx - size of buffer
|
||||
;result:
|
||||
; eax = 1 region lays in app memory
|
||||
; eax = 0 region don't lays in app memory
|
||||
|
||||
test edx, edx
|
||||
jle .ok
|
||||
shl eax, 5
|
||||
cmp word [CURRENT_TASK+eax+0xa], 0
|
||||
jnz .failed
|
||||
shl eax, 3
|
||||
mov eax, [SLOT_BASE+eax+0xb8]
|
||||
test eax, eax
|
||||
jz .failed
|
||||
|
||||
mov eax, 1
|
||||
ret
|
||||
.ok:
|
||||
mov eax, 1
|
||||
ret
|
||||
.failed:
|
||||
xor eax, eax
|
||||
ret
|
||||
end if
|
||||
|
||||
align 4
|
||||
proc read_process_memory
|
||||
|
Loading…
Reference in New Issue
Block a user