Rev 6338 | Rev 6502 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6338 | Rev 6345 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 6338 $ |
8 | $Revision: 6345 $ |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 948... | Line 948... | ||
948 | mov fs, dx |
948 | mov fs, dx |
Line 949... | Line 949... | ||
949 | 949 | ||
950 | .cleanup: |
950 | .cleanup: |
951 | stdcall free_kernel_space, [ebp+APP_HDR.img_base] |
951 | stdcall free_kernel_space, [ebp+APP_HDR.img_base] |
- | 952 | stdcall kernel_free, ebp |
|
- | 953 | ||
- | 954 | mov ebx, [current_slot] |
|
- | 955 | cmp [ebx+APPDATA.debugger_slot], 0 |
|
- | 956 | je .exit |
|
- | 957 | mov eax, [TASK_BASE] |
|
- | 958 | mov [eax+TASKDATA.state], 1 |
|
952 | stdcall kernel_free, ebp |
959 | call change_task |
953 | .exit: |
960 | .exit: |
954 | popad |
961 | popad |
Line 955... | Line 962... | ||
955 | iretd |
962 | iretd |
Line 1088... | Line 1095... | ||
1088 | 1095 | ||
1089 | xor edx, edx; process state - running |
1096 | xor edx, edx; process state - running |
1090 | ; set if debuggee |
1097 | ; set if debuggee |
1091 | test byte [flags], 1 |
1098 | test byte [flags], 1 |
1092 | jz .no_debug |
- | |
1093 | inc edx ; process state - suspended |
1099 | jz .no_debug |
1094 | mov eax, [CURRENT_TASK] |
1100 | mov eax, [CURRENT_TASK] |
1095 | mov [SLOT_BASE+ebx*8+APPDATA.debugger_slot], eax |
1101 | mov [SLOT_BASE+ebx*8+APPDATA.debugger_slot], eax |
1096 | .no_debug: |
1102 | .no_debug: |
1097 | mov [CURRENT_TASK+ebx+TASKDATA.state], dl |
1103 | mov [CURRENT_TASK+ebx+TASKDATA.state], dl |