Lines Matching refs:leader

267 	return each_task(task->leader, NULL, &task_vforked, NULL) != NULL;  in is_vfork_parent()
273 struct process *leader = task->leader; in send_sigstop() local
282 destroy_event_handler(leader); in send_sigstop()
335 if (DICT_FIND_VAL(proc->leader->breakpoints, &ip, &found) < 0) { in ugly_workaround()
346 struct process *leader) in process_stopping_done() argument
374 destroy_event_handler(leader); in process_stopping_done()
386 && event->proc->leader == data in undo_breakpoint()
417 detach_process(struct process *leader) in detach_process() argument
419 each_qd_event(&undo_breakpoint, leader); in detach_process()
420 disable_all_breakpoints(leader); in detach_process()
421 proc_each_breakpoint(leader, NULL, retract_breakpoint_cb, NULL); in detach_process()
429 if (proc->leader == leader) { in detach_process()
430 each_task(leader, NULL, &untrace_task, NULL); in detach_process()
434 each_task(leader, NULL, &remove_task, leader); in detach_process()
435 destroy_event_handler(leader); in detach_process()
436 remove_task(leader, NULL); in detach_process()
569 = (void *)proc->leader->event_handler; in remove_sw_breakpoints()
669 delete_breakpoint_at(teb->leader, sbp->addr); in singlestep_error()
722 struct process *leader = task->leader; in process_stopping_on_event() local
756 if (each_task(leader, NULL, &task_blocked, in process_stopping_on_event()
777 = address2bpstruct(leader, ip); in process_stopping_on_event()
822 process_stopping_done(self, leader); in process_stopping_on_event()
829 undo_breakpoint(event, leader); in process_stopping_on_event()
835 undo_breakpoint(event, leader); in process_stopping_on_event()
836 detach_process(leader); in process_stopping_on_event()
892 install_event_handler(proc->leader, &handler->super); in process_install_stopping_handler()
894 if (each_task(proc->leader, NULL, &send_sigstop, in process_install_stopping_handler()
949 struct process *leader = task->leader; in ltrace_exiting_on_event() local
959 undo_breakpoint(event, leader); in ltrace_exiting_on_event()
963 detach_process(leader); in ltrace_exiting_on_event()
984 if (proc->leader != proc) in ltrace_exiting_install_handler()
1015 install_event_handler(proc->leader, &handler->super); in ltrace_exiting_install_handler()
1017 if (each_task(proc->leader, NULL, &send_sigstop, in ltrace_exiting_install_handler()
1068 DICT_FIND_VAL(proc->leader->breakpoints, in process_vfork_on_event()
1071 breakpoint_turn_on(sbp, proc->leader); in process_vfork_on_event()
1111 assert(proc->leader == proc); in continue_after_vfork()
1112 assert(proc->next == NULL || proc->next->leader != proc); in continue_after_vfork()
1116 assert(proc->parent->leader != NULL); in continue_after_vfork()
1118 change_process_leader(proc, proc->parent->leader); in continue_after_vfork()
1133 if (ret_p && (is_mid_stopping(proc) || is_mid_stopping(proc->leader))) { in continue_after_syscall()
1176 if (proc == NULL || proc->leader == NULL) in os_ltrace_exiting()
1178 if (ltrace_exiting_install_handler(proc->leader) < 0) in os_ltrace_exiting()