Changeset 8af9950 in mainline for kernel/generic/src/udebug/udebug_ops.c
- Timestamp:
- 2008-12-07T18:36:51Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 925fdd7
- Parents:
- 5d9430d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug_ops.c
r5d9430d7 r8af9950 59 59 * and belongs to the current task (TASK). Verifies, that the thread 60 60 * is (or is not) go according to being_go (typically false). 61 * It also locks t->udebug.lock, making sure that t->udebug. debug_active61 * It also locks t->udebug.lock, making sure that t->udebug.active 62 62 * is true - that the thread is in a valid debugging session. 63 63 * … … 109 109 110 110 /* Verify debugging state. */ 111 if (t->udebug. debug_active != true) {111 if (t->udebug.active != true) { 112 112 /* Not in debugging session or undesired GO state */ 113 113 spinlock_unlock(&t->lock); … … 118 118 119 119 /* 120 * Since the thread has debug_active == true, TASK->udebug.lock121 * is enough to ensure its existence and that debug_active remains120 * Since the thread has active == true, TASK->udebug.lock 121 * is enough to ensure its existence and that active remains 122 122 * true. 123 123 */ … … 205 205 } 206 206 207 /* Set udebug. debug_active on all of the task's userspace threads. */207 /* Set udebug.active on all of the task's userspace threads. */ 208 208 209 209 for (cur = TASK->th_head.next; cur != &TASK->th_head; cur = cur->next) { … … 212 212 mutex_lock(&t->udebug.lock); 213 213 if ((t->flags & THREAD_FLAG_USPACE) != 0) 214 t->udebug. debug_active = true;214 t->udebug.active = true; 215 215 mutex_unlock(&t->udebug.lock); 216 216 }
Note:
See TracChangeset
for help on using the changeset viewer.