Changeset 0108984a in mainline for kernel/generic/src/udebug/udebug.c
- Timestamp:
- 2008-09-17T13:38:18Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9a29d6
- Parents:
- fb9b0b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug.c
rfb9b0b0 r0108984a 49 49 50 50 #include <synch/waitq.h> 51 #include < print.h>51 #include <debug.h> 52 52 #include <udebug/udebug.h> 53 53 #include <errno.h> … … 332 332 mutex_lock(&THREAD->udebug.lock); 333 333 334 printf("udebug_thread_b_event\n");335 printf("- check state\n");334 LOG("udebug_thread_b_event\n"); 335 LOG("- check state\n"); 336 336 337 337 /* Must only generate events when in debugging session */ 338 338 if (THREAD->udebug.debug_active != true) { 339 printf("- debug_active: %s, udebug.stop: %s\n",339 LOG("- debug_active: %s, udebug.stop: %s\n", 340 340 THREAD->udebug.debug_active ? "yes(+)" : "no(-)", 341 341 THREAD->udebug.stop ? "yes(-)" : "no(+)"); … … 345 345 } 346 346 347 printf("- trigger event\n");347 LOG("- trigger event\n"); 348 348 349 349 call = THREAD->udebug.go_call; … … 366 366 mutex_unlock(&TASK->udebug.lock); 367 367 368 printf("- sleep\n");368 LOG("- sleep\n"); 369 369 udebug_wait_for_go(&THREAD->udebug.go_wq); 370 370 … … 381 381 mutex_lock(&THREAD->udebug.lock); 382 382 383 // printf("udebug_thread_e_event\n");384 // printf("- check state\n");383 LOG("udebug_thread_e_event\n"); 384 LOG("- check state\n"); 385 385 386 386 /* Must only generate events when in debugging session */ … … 394 394 } 395 395 396 // printf("- trigger event\n");396 LOG("- trigger event\n"); 397 397 398 398 call = THREAD->udebug.go_call; … … 428 428 ipl_t ipl; 429 429 430 printf("udebug_task_cleanup()\n");431 printf("task %llu\n", ta->taskid);430 LOG("udebug_task_cleanup()\n"); 431 LOG("task %" PRIu64 "\n", ta->taskid); 432 432 433 433 udebug_int_lock(); … … 435 435 if (ta->udebug.dt_state != UDEBUG_TS_BEGINNING && 436 436 ta->udebug.dt_state != UDEBUG_TS_ACTIVE) { 437 printf("udebug_task_cleanup(): task not being debugged\n");437 LOG("udebug_task_cleanup(): task not being debugged\n"); 438 438 return EINVAL; 439 439 } … … 468 468 469 469 /* Answer GO call */ 470 printf("answer GO call with EVENT_FINISHED\n");470 LOG("answer GO call with EVENT_FINISHED\n"); 471 471 IPC_SET_RETVAL(t->udebug.go_call->data, 0); 472 472 IPC_SET_ARG1(t->udebug.go_call->data, UDEBUG_EVENT_FINISHED);
Note:
See TracChangeset
for help on using the changeset viewer.