Rev 3601 | Rev 3683 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3601 | Rev 3603 | ||
|---|---|---|---|
| Line 315... | Line 315... | ||
| 315 | int udebug_stop(thread_t *t, call_t *call) |
315 | int udebug_stop(thread_t *t, call_t *call) |
| 316 | { |
316 | { |
| 317 | int rc; |
317 | int rc; |
| 318 | 318 | ||
| 319 | LOG("udebug_stop()\n"); |
319 | LOG("udebug_stop()\n"); |
| 320 | mutex_lock(&TASK->udebug.lock); |
- | |
| 321 | 320 | ||
| 322 | /* |
321 | /* |
| 323 | * On success, this will lock t->udebug.lock. Note that this makes sure |
322 | * On success, this will lock t->udebug.lock. Note that this makes sure |
| 324 | * the thread is not stopped. |
323 | * the thread is not stopped. |
| 325 | */ |
324 | */ |
| Line 352... | Line 351... | ||
| 352 | 351 | ||
| 353 | THREAD->udebug.cur_event = UDEBUG_EVENT_STOP; |
352 | THREAD->udebug.cur_event = UDEBUG_EVENT_STOP; |
| 354 | 353 | ||
| 355 | _thread_op_end(t); |
354 | _thread_op_end(t); |
| 356 | 355 | ||
| - | 356 | mutex_lock(&TASK->udebug.lock); |
|
| 357 | ipc_answer(&TASK->answerbox, call); |
357 | ipc_answer(&TASK->answerbox, call); |
| 358 | mutex_unlock(&TASK->udebug.lock); |
358 | mutex_unlock(&TASK->udebug.lock); |
| 359 | 359 | ||
| 360 | LOG("udebog_stop/done\n"); |
360 | LOG("udebog_stop/done\n"); |
| 361 | return 0; |
361 | return 0; |