Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2907 → Rev 2908

/branches/tracing/kernel/generic/src/udebug/udebug.c
303,14 → 303,10
IPC_SET_RETVAL(call->data, 0);
IPC_SET_ARG1(call->data, UDEBUG_EVENT_THREAD_E);
 
/*
* Make sure debug_stop is true when going to sleep
* in case we get woken up by DEBUG_END. (At which
* point it must be back to the initial true value).
*/
THREAD->debug_stop = true;
 
THREAD->cur_event = UDEBUG_EVENT_THREAD_E;
/* Prevent any further debug activity in thread */
THREAD->debug_active = false;
THREAD->cur_event = 0; /* none */
THREAD->debug_stop = true; /* set to initial value */
spinlock_unlock(&THREAD->debug_lock);
 
spinlock_lock(&TASK->lock);
318,9 → 314,8
spinlock_unlock(&TASK->lock);
 
interrupts_restore(ipl);
klog_printf("- sleep");
 
waitq_sleep(&THREAD->go_wq);
/* This event does not sleep - debugging has finished in this thread */
}