Changeset 1378b2b in mainline for kernel/generic/src/udebug/udebug.c
- Timestamp:
- 2008-11-21T14:04:08Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 384c488
- Parents:
- 18c485a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug.c
r18c485a r1378b2b 248 248 249 249 goto restart; 250 /* must try again - have to lose stoppability atomically*/250 /* Must try again - have to lose stoppability atomically. */ 251 251 } else { 252 252 ++TASK->udebug.not_stoppable_count; … … 322 322 mutex_lock(&THREAD->udebug.lock); 323 323 324 /* Must only generate events when in debugging session and have go*/324 /* Must only generate events when in debugging session and is go. */ 325 325 if (THREAD->udebug.debug_active != true || 326 326 THREAD->udebug.stop == true || … … 440 440 LOG("- check state\n"); 441 441 442 /* Must only generate events when in debugging session */442 /* Must only generate events when in debugging session. */ 443 443 if (THREAD->udebug.debug_active != true) { 444 444 /* printf("- debug_active: %s, udebug.stop: %s\n", … … 457 457 IPC_SET_ARG1(call->data, UDEBUG_EVENT_THREAD_E); 458 458 459 /* Prevent any further debug activity in thread */459 /* Prevent any further debug activity in thread. */ 460 460 THREAD->udebug.debug_active = false; 461 461 THREAD->udebug.cur_event = 0; /* none */ … … 467 467 mutex_unlock(&TASK->udebug.lock); 468 468 469 /* Leave int_lock enabled */470 /* This event does not sleep - debugging has finished in this thread */469 /* Leave int_lock enabled. */ 470 /* This event does not sleep - debugging has finished in this thread. */ 471 471 } 472 472 … … 513 513 interrupts_restore(ipl); 514 514 515 /* Only process userspace threads */515 /* Only process userspace threads. */ 516 516 if ((flags & THREAD_FLAG_USPACE) != 0) { 517 /* Prevent any further debug activity in thread */517 /* Prevent any further debug activity in thread. */ 518 518 t->udebug.debug_active = false; 519 519 t->udebug.cur_event = 0; /* none */ 520 520 521 /* Still hasgo? */521 /* Is the thread still go? */ 522 522 if (t->udebug.stop == false) { 523 523 /*
Note:
See TracChangeset
for help on using the changeset viewer.