Lines Matching defs:phdl
55 proc_stop(struct proc_handle *phdl)
59 if (kill(proc_getpid(phdl), SIGSTOP) == -1) {
60 DPRINTF("kill %d", proc_getpid(phdl));
62 } else if (waitpid(proc_getpid(phdl), &status, WSTOPPED) == -1) {
63 DPRINTF("waitpid %d", proc_getpid(phdl));
74 proc_bkptset(struct proc_handle *phdl, uintptr_t address,
82 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD ||
83 phdl->status == PS_IDLE) {
91 if (phdl->status != PS_STOP) {
92 if (proc_stop(phdl) != 0)
106 if (ptrace(PT_IO, proc_getpid(phdl), &piod, 0) < 0) {
120 if (ptrace(PT_IO, proc_getpid(phdl), &piod, 0) < 0) {
130 proc_continue(phdl);
136 proc_bkptdel(struct proc_handle *phdl, uintptr_t address,
143 if (phdl->status == PS_DEAD || phdl->status == PS_UNDEAD ||
144 phdl->status == PS_IDLE) {
152 if (phdl->status != PS_STOP) {
153 if (proc_stop(phdl) != 0)
166 if (ptrace(PT_IO, proc_getpid(phdl), &piod, 0) < 0) {
174 proc_continue(phdl);
201 proc_bkptexec(struct proc_handle *phdl, proc_breakpoint_t *saved)
207 if (proc_regget(phdl, REG_PC, &pc) < 0) {
212 if (proc_bkptdel(phdl, pc, saved) < 0) {
220 proc_regset(phdl, REG_PC, pc);
222 if (ptrace(PT_STEP, proc_getpid(phdl), (void *)(intptr_t)1, 0) < 0) {
227 proc_wstatus(phdl);
228 status = proc_getwstat(phdl);
237 if (proc_bkptset(phdl, pc, &samesaved) < 0) {