Changeset 86bbca4 in mainline


Ignore:
Timestamp:
2017-12-08T21:03:35Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f43742e2
Parents:
e172429
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 03:41:22)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
Message:

Only return error code from udebug_begin().

Nobody should ever need the extra information.

File:
1 edited

Legend:

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

    re172429 r86bbca4  
    167167 * @param call The BEGIN call we are servicing.
    168168 *
    169  * @return 0 (OK, but not done yet), 1 (done) or negative error code.
     169 * @return EOK or negative error code.
    170170 *
    171171 */
     
    184184        TASK->udebug.begin_call = call;
    185185        TASK->udebug.debugger = call->sender;
    186        
    187         int reply;
    188        
    189         if (TASK->udebug.not_stoppable_count == 0) {
    190                 TASK->udebug.dt_state = UDEBUG_TS_ACTIVE;
    191                 TASK->udebug.begin_call = NULL;
    192                 reply = 1;  /* immediate reply */
    193         } else
    194                 reply = 0;  /* no reply */
    195186       
    196187        /* Set udebug.active on all of the task's userspace threads. */
     
    207198       
    208199        mutex_unlock(&TASK->udebug.lock);
    209         return reply;
     200        return EOK;
    210201}
    211202
Note: See TracChangeset for help on using the changeset viewer.