Changes in kernel/generic/src/udebug/udebug_ipc.c [63e27ef:7f11dc6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug_ipc.c
r63e27ef r7f11dc6 72 72 { 73 73 int rc; 74 75 rc = udebug_begin(call); 76 if (rc < 0) { 74 bool active; 75 76 rc = udebug_begin(call, &active); 77 if (rc != EOK) { 77 78 IPC_SET_RETVAL(call->data, rc); 78 79 ipc_answer(&TASK->kb.box, call); … … 84 85 * send a reply. 85 86 */ 86 if ( rc != 0) {87 IPC_SET_RETVAL(call->data, 0);87 if (active) { 88 IPC_SET_RETVAL(call->data, EOK); 88 89 ipc_answer(&TASK->kb.box, call); 89 90 } … … 136 137 137 138 rc = udebug_go(t, call); 138 if (rc < 0) {139 if (rc != EOK) { 139 140 IPC_SET_RETVAL(call->data, rc); 140 141 ipc_answer(&TASK->kb.box, call); … … 181 182 */ 182 183 rc = udebug_thread_read(&buffer, buf_size, &copied, &needed); 183 if (rc < 0) {184 if (rc != EOK) { 184 185 IPC_SET_RETVAL(call->data, rc); 185 186 ipc_answer(&TASK->kb.box, call); … … 350 351 351 352 rc = udebug_regs_read(t, &buffer); 352 if (rc < 0) {353 if (rc != EOK) { 353 354 IPC_SET_RETVAL(call->data, rc); 354 355 ipc_answer(&TASK->kb.box, call); … … 396 397 397 398 rc = udebug_mem_read(uspace_src, size, &buffer); 398 if (rc < 0) {399 if (rc != EOK) { 399 400 IPC_SET_RETVAL(call->data, rc); 400 401 ipc_answer(&TASK->kb.box, call);
Note:
See TracChangeset
for help on using the changeset viewer.