Rev 2898 | Rev 2901 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2898 | Rev 2899 | ||
|---|---|---|---|
| Line 46... | Line 46... | ||
| 46 | /** Finish debugging the recipient. |
46 | /** Finish debugging the recipient. |
| 47 | * Answers all pending GO and GUARD messages. |
47 | * Answers all pending GO and GUARD messages. |
| 48 | */ |
48 | */ |
| 49 | UDEBUG_M_END, |
49 | UDEBUG_M_END, |
| 50 | 50 | ||
| - | 51 | /** Set which events should be captured. |
|
| - | 52 | */ |
|
| - | 53 | UDEBUG_M_SET_EVMASK, |
|
| - | 54 | ||
| 51 | /** Make sure the debugged task is still there. |
55 | /** Make sure the debugged task is still there. |
| 52 | * This message is answered when the debugged task dies |
56 | * This message is answered when the debugged task dies |
| 53 | * or the debugging session ends. |
57 | * or the debugging session ends. |
| 54 | */ |
58 | */ |
| 55 | UDEBUG_M_GUARD, |
59 | UDEBUG_M_GUARD, |
| Line 151... | Line 155... | ||
| 151 | UDEBUG_EVENT_STOP, /**< Stopped on DEBUG_STOP request */ |
155 | UDEBUG_EVENT_STOP, /**< Stopped on DEBUG_STOP request */ |
| 152 | UDEBUG_EVENT_SYSCALL, /**< A syscall has been executed */ |
156 | UDEBUG_EVENT_SYSCALL, /**< A syscall has been executed */ |
| 153 | UDEBUG_EVENT_NEW_THREAD /**< The task created a new thread */ |
157 | UDEBUG_EVENT_NEW_THREAD /**< The task created a new thread */ |
| 154 | } udebug_event_t; |
158 | } udebug_event_t; |
| 155 | 159 | ||
| - | 160 | #define UDEBUG_EVMASK(event) (1 << ((event) - 1)) |
|
| - | 161 | ||
| - | 162 | typedef enum { |
|
| - | 163 | UDEBUG_EM_FINISHED = UDEBUG_EVMASK(UDEBUG_EVENT_FINISHED), |
|
| - | 164 | UDEBUG_EM_STOP = UDEBUG_EVMASK(UDEBUG_EVENT_STOP), |
|
| - | 165 | UDEBUG_EM_SYSCALL = UDEBUG_EVMASK(UDEBUG_EVENT_SYSCALL), |
|
| - | 166 | UDEBUG_EM_NEW_THREAD = UDEBUG_EVMASK(UDEBUG_EVENT_NEW_THREAD), |
|
| - | 167 | UDEBUG_EM_ALL = |
|
| - | 168 | UDEBUG_EVMASK(UDEBUG_EVENT_FINISHED) | |
|
| - | 169 | UDEBUG_EVMASK(UDEBUG_EVENT_STOP) | |
|
| - | 170 | UDEBUG_EVMASK(UDEBUG_EVENT_SYSCALL) | |
|
| - | 171 | UDEBUG_EVMASK(UDEBUG_EVENT_NEW_THREAD) |
|
| - | 172 | } udebug_evmask_t; |
|
| - | 173 | ||
| 156 | #ifdef KERNEL |
174 | #ifdef KERNEL |
| 157 | 175 | ||
| 158 | typedef enum { |
176 | typedef enum { |
| 159 | /** Task is not being debugged */ |
177 | /** Task is not being debugged */ |
| 160 | UDEBUG_TS_INACTIVE, |
178 | UDEBUG_TS_INACTIVE, |