Subversion Repositories HelenOS

Rev

Rev 3426 | Rev 3606 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3426 Rev 3428
Line 379... Line 379...
379
    udebug_int_lock();
379
    udebug_int_lock();
380
 
380
 
381
    mutex_lock(&TASK->udebug.lock);
381
    mutex_lock(&TASK->udebug.lock);
382
    mutex_lock(&THREAD->udebug.lock);
382
    mutex_lock(&THREAD->udebug.lock);
383
 
383
 
384
    printf("udebug_thread_e_event\n");
384
//  printf("udebug_thread_e_event\n");
385
    printf("- check state\n");
385
//  printf("- check state\n");
386
 
386
 
387
    /* Must only generate events when in debugging session */
387
    /* Must only generate events when in debugging session */
388
    if (THREAD->udebug.debug_active != true) {
388
    if (THREAD->udebug.debug_active != true) {
389
        printf("- debug_active: %s, udebug.stop: %s\n",
389
/*      printf("- debug_active: %s, udebug.stop: %s\n",
390
            THREAD->udebug.debug_active ? "yes(+)" : "no(-)",
390
            THREAD->udebug.debug_active ? "yes(+)" : "no(-)",
391
            THREAD->udebug.stop ? "yes(-)" : "no(+)");
391
            THREAD->udebug.stop ? "yes(-)" : "no(+)");*/
392
        mutex_unlock(&THREAD->udebug.lock);
392
        mutex_unlock(&THREAD->udebug.lock);
393
        mutex_unlock(&TASK->udebug.lock);
393
        mutex_unlock(&TASK->udebug.lock);
394
        return;
394
        return;
395
    }
395
    }
396
 
396
 
397
    printf("- trigger event\n");
397
//  printf("- trigger event\n");
398
 
398
 
399
    call = THREAD->udebug.go_call;
399
    call = THREAD->udebug.go_call;
400
    THREAD->udebug.go_call = NULL;
400
    THREAD->udebug.go_call = NULL;
401
    IPC_SET_RETVAL(call->data, 0);
401
    IPC_SET_RETVAL(call->data, 0);
402
    IPC_SET_ARG1(call->data, UDEBUG_EVENT_THREAD_E);
402
    IPC_SET_ARG1(call->data, UDEBUG_EVENT_THREAD_E);