Rev 3015 | Rev 3018 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3015 | Rev 3016 | ||
---|---|---|---|
Line 173... | Line 173... | ||
173 | UDEBUG_EVMASK(UDEBUG_EVENT_TRAP) |
173 | UDEBUG_EVMASK(UDEBUG_EVENT_TRAP) |
174 | } udebug_evmask_t; |
174 | } udebug_evmask_t; |
175 | 175 | ||
176 | #ifdef KERNEL |
176 | #ifdef KERNEL |
177 | 177 | ||
- | 178 | #include <synch/mutex.h> |
|
- | 179 | ||
178 | typedef enum { |
180 | typedef enum { |
179 | /** Task is not being debugged */ |
181 | /** Task is not being debugged */ |
180 | UDEBUG_TS_INACTIVE, |
182 | UDEBUG_TS_INACTIVE, |
181 | /** BEGIN operation in progress (waiting for threads to stop) */ |
183 | /** BEGIN operation in progress (waiting for threads to stop) */ |
182 | UDEBUG_TS_BEGINNING, |
184 | UDEBUG_TS_BEGINNING, |
Line 187... | Line 189... | ||
187 | } udebug_task_state_t; |
189 | } udebug_task_state_t; |
188 | 190 | ||
189 | /** Debugging part of task_t structure. |
191 | /** Debugging part of task_t structure. |
190 | */ |
192 | */ |
191 | typedef struct { |
193 | typedef struct { |
- | 194 | /** Synchronize debug ops on this task / access to this structure */ |
|
- | 195 | mutex_t lock; |
|
- | 196 | ||
192 | udebug_task_state_t dt_state; |
197 | udebug_task_state_t dt_state; |
193 | call_t *begin_call; |
198 | call_t *begin_call; |
194 | int not_stoppable_count; |
199 | int not_stoppable_count; |
195 | struct task *debugger; |
200 | struct task *debugger; |
196 | udebug_evmask_t evmask; |
201 | udebug_evmask_t evmask; |