Lines Matching refs:current_tcp
159 static struct tcb *current_tcp; variable
401 if (current_tcp && current_tcp->curcol != 0) { in ptrace_restart()
539 if (current_tcp) { in tvprintf()
540 int n = vfprintf(current_tcp->outf, fmt, args); in tvprintf()
543 outf_perror(current_tcp); in tvprintf()
545 current_tcp->curcol += n; in tvprintf()
565 if (current_tcp) { in tprints()
566 int n = fputs_unlocked(str, current_tcp->outf); in tprints()
568 current_tcp->curcol += strlen(str); in tprints()
572 outf_perror(current_tcp); in tprints()
607 if (current_tcp) { in line_ended()
608 current_tcp->curcol = 0; in line_ended()
609 flush_tcp_output(current_tcp); in line_ended()
620 current_tcp = (struct tcb *) tcp; in set_current_tcp()
623 if (current_tcp) in set_current_tcp()
624 set_personality(current_tcp->currpers); in set_current_tcp()
652 current_tcp->curcol = 0; in printleader()
708 if (current_tcp->curcol < acolumn) in tabto()
709 tprints(acolumn_spaces + current_tcp->curcol); in tabto()
851 if (current_tcp == tcp) in droptcb()
2491 if (trace_syscall(current_tcp, &restart_sig) < 0) { in dispatch_event()
2509 print_stopped(current_tcp, &wd->si, restart_sig); in dispatch_event()
2513 print_signalled(current_tcp, current_tcp->pid, status); in dispatch_event()
2514 droptcb(current_tcp); in dispatch_event()
2519 print_stopped(current_tcp, NULL, restart_sig); in dispatch_event()
2533 print_exited(current_tcp, current_tcp->pid, status); in dispatch_event()
2534 droptcb(current_tcp); in dispatch_event()
2546 if (entering(current_tcp)) { in dispatch_event()
2551 current_tcp->pid); in dispatch_event()
2553 current_tcp->flags |= TCB_RECOVERING; in dispatch_event()
2554 ret = trace_syscall(current_tcp, &restart_sig); in dispatch_event()
2555 current_tcp->flags &= ~TCB_RECOVERING; in dispatch_event()
2579 set_current_tcp(maybe_switch_tcbs(current_tcp, in dispatch_event()
2580 current_tcp->pid)); in dispatch_event()
2583 if (current_tcp->flags & TCB_SKIP_DETACH_ON_FIRST_EXEC) { in dispatch_event()
2584 current_tcp->flags &= ~TCB_SKIP_DETACH_ON_FIRST_EXEC; in dispatch_event()
2586 detach(current_tcp); /* do "-b execve" thingy */ in dispatch_event()
2593 print_event_exit(current_tcp); in dispatch_event()
2602 if (syscall_delayed(current_tcp)) in dispatch_event()
2605 if (ptrace_restart(restart_op, current_tcp, restart_sig) < 0) { in dispatch_event()
2622 struct tcb *const prev_tcp = current_tcp; in restart_delayed_tcb()
2623 current_tcp = tcp; in restart_delayed_tcb()
2625 current_tcp = prev_tcp; in restart_delayed_tcb()