Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/udebug/udebug_ipc.c

    r63e27ef r7f11dc6  
    7272{
    7373        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) {
    7778                IPC_SET_RETVAL(call->data, rc);
    7879                ipc_answer(&TASK->kb.box, call);
     
    8485         * send a reply.
    8586         */
    86         if (rc != 0) {
    87                 IPC_SET_RETVAL(call->data, 0);
     87        if (active) {
     88                IPC_SET_RETVAL(call->data, EOK);
    8889                ipc_answer(&TASK->kb.box, call);
    8990        }
     
    136137
    137138        rc = udebug_go(t, call);
    138         if (rc < 0) {
     139        if (rc != EOK) {
    139140                IPC_SET_RETVAL(call->data, rc);
    140141                ipc_answer(&TASK->kb.box, call);
     
    181182         */
    182183        rc = udebug_thread_read(&buffer, buf_size, &copied, &needed);
    183         if (rc < 0) {
     184        if (rc != EOK) {
    184185                IPC_SET_RETVAL(call->data, rc);
    185186                ipc_answer(&TASK->kb.box, call);
     
    350351
    351352        rc = udebug_regs_read(t, &buffer);
    352         if (rc < 0) {
     353        if (rc != EOK) {
    353354                IPC_SET_RETVAL(call->data, rc);
    354355                ipc_answer(&TASK->kb.box, call);
     
    396397
    397398        rc = udebug_mem_read(uspace_src, size, &buffer);
    398         if (rc < 0) {
     399        if (rc != EOK) {
    399400                IPC_SET_RETVAL(call->data, rc);
    400401                ipc_answer(&TASK->kb.box, call);
Note: See TracChangeset for help on using the changeset viewer.