Lines Matching defs:P
45 Ppltdest(struct ps_prochandle *P, uintptr_t pltaddr)
47 map_info_t *mp = Paddr2mptr(P, pltaddr);
65 if (Pread(P, &r, sizeof (r), r_addr) == sizeof (r) &&
78 Pissyscall(struct ps_prochandle *P, uintptr_t addr)
82 if (Pread(P, instr, sizeof (int_syscall_instr), addr) !=
93 Pissyscall_prev(struct ps_prochandle *P, uintptr_t addr, uintptr_t *dst)
97 if (ret = Pissyscall(P, addr - sizeof (int_syscall_instr))) {
108 Pissyscall_text(struct ps_prochandle *P, const void *buf, size_t buflen)
138 argcount(struct ps_prochandle *P, long pc, ssize_t sz)
148 if (Pread(P, instr, sizeof (instr), pc) != sizeof (instr) ||
174 Pstack_iter(struct ps_prochandle *P, const prgregset_t regs,
208 init_uclist(&ucl, P);
219 (sz = Pread(P, &frame, sizeof (frame), (uintptr_t)fp)
228 argc = argcount(P, (long)frame.pc, sz);
264 Pread(P, &uc, sizeof (uc), uc_addr) == sizeof (uc)) {
280 Psyscall_setup(struct ps_prochandle *P, int nargs, int sysindex, uintptr_t sp)
284 P->status.pr_lwp.pr_reg[EAX] = sysindex;
285 P->status.pr_lwp.pr_reg[R_SP] = sp;
286 P->status.pr_lwp.pr_reg[R_PC] = P->sysaddr;
292 Psyscall_copyinargs(struct ps_prochandle *P, int nargs, argdes_t *argp,
302 arglist[0] = P->status.pr_lwp.pr_reg[R_PC];
303 if (Pwrite(P, &arglist[0], sizeof (int) * (nargs+1),
311 Psyscall_copyoutargs(struct ps_prochandle *P, int nargs, argdes_t *argp,
318 if (Pread(P, &arglist[0], sizeof (int) * (nargs+1), (uintptr_t)ap)