- Timestamp:
- 2008-11-21T22:14:24Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32e6c9c
- Parents:
- 384c488
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
r384c488 r741fd16 450 450 while (!abort_trace) { 451 451 452 if (paused) { 453 printf("Waiting for resume\n"); 454 while (paused) { 455 usleep(1000000); 456 fibril_yield(); 457 printf("."); 458 } 459 printf("Resumed\n"); 460 } 461 452 462 /* Run thread until an event occurs */ 453 463 rc = udebug_go(phoneid, thread_hash, … … 470 480 case UDEBUG_EVENT_STOP: 471 481 printf("Stop event\n"); 472 printf("Waiting for resume\n");473 while (paused) {474 usleep(1000000);475 fibril_yield();476 printf(".");477 }478 printf("Resumed\n");479 482 break; 480 483 case UDEBUG_EVENT_THREAD_B: … … 581 584 if (c == 'q') break; 582 585 if (c == 'p') { 586 printf("Pause...\n"); 583 587 paused = 1; 584 588 rc = udebug_stop(phoneid, thash); … … 587 591 if (c == 'r') { 588 592 paused = 0; 593 printf("Resume...\n"); 589 594 } 590 595 }
Note:
See TracChangeset
for help on using the changeset viewer.