Lines Matching refs:child
53 setup(pid_t child)
59 error = waitpid(child, &status, WTRAPPED | WEXITED);
62 error = ptrace(PT_GETREGS, child, (caddr_t)&r, 0);
65 printf("child %d stopped eip %#x esp %#x\n", child, r.r_eip, r.r_esp);
67 error = ptrace(PT_GETDBREGS, child, (caddr_t)&dbr, 0);
74 error = ptrace(PT_SETDBREGS, child, (caddr_t)&dbr, 0);
77 error = ptrace(PT_CONTINUE, child, (caddr_t)1, 0);
82 error = waitpid(child, &status, WTRAPPED | WEXITED);
87 error = ptrace(PT_GETREGS, child, (caddr_t)&r, 0);
90 error = ptrace(PT_GETDBREGS, child, (caddr_t)&dbr, 0);
93 printf("child %d stopped eip %#x esp %#x dr0 %#x "
94 "dr6 %#x dr7 %#x\n", child, r.r_eip, r.r_esp,
96 error = ptrace(PT_CONTINUE, child, (caddr_t)1, 0);
101 kill(child, SIGKILL);
102 ptrace(PT_DETACH, child, NULL, 0);
125 printf("child pid %d, stk at %p\n", getpid(), stk);
166 int child;
174 child = fork();
175 if (child == -1)
177 if (child == 0)
180 setup(child);