1,6 → 1,6 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
;; ;; |
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
;; Distributed under terms of the GNU General Public License ;; |
;; ;; |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
155,7 → 155,7 |
call get_debuggee_slot |
jc .ret |
|
shr eax, 8 |
shr eax, BSF sizeof.APPDATA |
cmp eax, [fpu_owner] |
jne @f |
inc bh ; set swap context flag |
162,7 → 162,7 |
@@: |
shl eax, BSF sizeof.APPDATA |
mov edi, esi |
mov eax, [eax+SLOT_BASE+APPDATA.pl0_stack] |
mov eax, [SLOT_BASE + eax + APPDATA.pl0_stack] |
lea esi, [eax+RING0_STACK_SIZE] |
|
.ring0: |
294,7 → 294,7 |
jnz .okret |
; imul eax, ebp, tss_step/32 |
; and byte [eax + tss_data + TSS._trap], not 1 |
and [ebp + SLOT_BASE+APPDATA.dbg_state], not 1 |
and [SLOT_BASE + ebp + APPDATA.dbg_state], not 1 |
.okret: |
and dword [esp+32], 0 |
sti |
341,7 → 341,7 |
or [eax+10h+2], dx ; set R/W and LEN fields |
; imul eax, ebp, tss_step/32 |
; or byte [eax + tss_data + TSS._trap], 1 |
or [ebp + SLOT_BASE+APPDATA.dbg_state], 1 |
or [SLOT_BASE + ebp + APPDATA.dbg_state], 1 |
jmp .okret |
|
debug_read_process_memory: |
354,7 → 354,7 |
; destroys all |
call get_debuggee_slot |
jc .err |
shr eax, 8 |
shr eax, BSF sizeof.APPDATA |
mov ecx, edi |
call read_process_memory |
sti |
374,7 → 374,7 |
; destroys all |
call get_debuggee_slot |
jc debug_read_process_memory.err |
shr eax, 8 |
shr eax, BSF sizeof.APPDATA |
mov ecx, edi |
call write_process_memory |
sti |
393,7 → 393,7 |
add edi, 500 ; 5 sec timeout |
.1: |
mov eax, ebp |
shl eax, 8 |
shl eax, BSF sizeof.APPDATA |
mov esi, [SLOT_BASE+eax+APPDATA.dbg_event_mem] |
test esi, esi |
jz .ret |