Rev 2923 | Rev 2936 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2923 | Rev 2924 | ||
---|---|---|---|
Line 241... | Line 241... | ||
241 | case UDEBUG_EVENT_THREAD_E: |
241 | case UDEBUG_EVENT_THREAD_E: |
242 | printf("thread 0x%x exited\n", val0); |
242 | printf("thread 0x%x exited\n", val0); |
243 | abort_debug = true; |
243 | abort_debug = true; |
244 | break; |
244 | break; |
245 | case UDEBUG_EVENT_BREAKPOINT: |
245 | case UDEBUG_EVENT_BREAKPOINT: |
246 | printf("breakpoint reached\n"); |
- | |
247 | arch_event_breakpoint(thash); |
246 | arch_event_breakpoint(thash); |
248 | break; |
247 | break; |
249 | case UDEBUG_EVENT_TRAP: |
248 | case UDEBUG_EVENT_TRAP: |
250 | printf("trap event\n"); |
- | |
251 | arch_event_trap(thash); |
249 | arch_event_trap(thash); |
252 | break; |
250 | break; |
253 | default: |
251 | default: |
254 | printf("unknown event type %d\n", ev_type); |
252 | printf("unknown event type %d\n", ev_type); |
255 | break; |
253 | break; |
Line 310... | Line 308... | ||
310 | printf("Breakpoint Debugger\n"); |
308 | printf("Breakpoint Debugger\n"); |
311 | printf("Press 'c' to connect\n"); |
309 | printf("Press 'c' to connect\n"); |
312 | while ((i = getchar()) != 'c') |
310 | while ((i = getchar()) != 'c') |
313 | putchar(i); |
311 | putchar(i); |
314 | 312 | ||
315 | taskid = 14; |
313 | taskid = 13; |
316 | rc = task_connect(taskid); |
314 | rc = task_connect(taskid); |
317 | if (rc < 0) { |
315 | if (rc < 0) { |
318 | printf("Failed to connect to task %d\n", taskid); |
316 | printf("Failed to connect to task %d\n", taskid); |
319 | return; |
317 | return; |
320 | } |
318 | } |