Lines Matching refs:P
51 ps_pdmodel(struct ps_prochandle *P, int *modelp)
53 *modelp = P->status.pr_dmodel;
58 ps_pread(struct ps_prochandle *P, psaddr_t addr, void *buf, size_t size)
60 if (P->ops.pop_pread(P, buf, size, addr, P->data) != size)
66 ps_pwrite(struct ps_prochandle *P, psaddr_t addr, const void *buf, size_t size)
68 if (P->ops.pop_pwrite(P, buf, size, addr, P->data) != size)
85 ps_pstop(struct ps_prochandle *P)
87 if (P->state != PS_STOP && P->state != PS_DEAD)
93 ps_pcontinue(struct ps_prochandle *P)
95 if (P->state != PS_STOP && P->state != PS_DEAD)
106 ps_lstop(struct ps_prochandle *P, lwpid_t lwpid)
108 if (P->state != PS_STOP && P->state != PS_DEAD)
115 ps_lcontinue(struct ps_prochandle *P, lwpid_t lwpid)
117 if (P->state != PS_STOP && P->state != PS_DEAD)
123 ps_lgetregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t regs)
125 if (P->state != PS_STOP && P->state != PS_DEAD)
128 if (Plwp_getregs(P, lwpid, regs) == 0)
135 ps_lsetregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t regs)
137 if (P->state != PS_STOP)
140 if (Plwp_setregs(P, lwpid, regs) == 0)
147 ps_lgetfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *regs)
149 if (P->state != PS_STOP && P->state != PS_DEAD)
152 if (Plwp_getfpregs(P, lwpid, regs) == 0)
159 ps_lsetfpregs(struct ps_prochandle *P, lwpid_t lwpid, const prfpregset_t *regs)
161 if (P->state != PS_STOP)
164 if (Plwp_setfpregs(P, lwpid, regs) == 0)
173 ps_lgetxregsize(struct ps_prochandle *P, lwpid_t lwpid, int *xrsize)
178 if (P->state == PS_DEAD) {
179 core_info_t *core = P->data;
197 procfs_path, (int)P->status.pr_pid, (int)lwpid);
207 ps_lgetxregs(struct ps_prochandle *P, lwpid_t lwpid, caddr_t xregs)
209 if (P->state != PS_STOP && P->state != PS_DEAD)
213 if (Plwp_getxregs(P, lwpid, (prxregset_t *)xregs) == 0)
220 ps_lsetxregs(struct ps_prochandle *P, lwpid_t lwpid, caddr_t xregs)
222 if (P->state != PS_STOP)
226 if (Plwp_setxregs(P, lwpid, (prxregset_t *)xregs) == 0)
237 ps_lgetLDT(struct ps_prochandle *P, lwpid_t lwpid, struct ssd *ldt)
240 if (P->status.pr_dmodel != PR_MODEL_NATIVE) {
249 if (P->state != PS_STOP && P->state != PS_DEAD)
256 if ((error = ps_lgetregs(P, lwpid, regs)) != PS_OK)
261 if ((nldt = Pldt(P, NULL, 0)) <= 0 ||
264 if ((nldt = Pldt(P, ldtarray, nldt)) <= 0) {
312 ps_pauxv(struct ps_prochandle *P, const auxv_t **aux)
314 if (P->auxv == NULL)
315 Preadauxvec(P);
317 if (P->auxv == NULL)
320 *aux = (const auxv_t *)P->auxv;
325 ps_pbrandname(struct ps_prochandle *P, char *buf, size_t len)
327 return (Pbrandname(P, buf, len) ? PS_OK : PS_ERR);
334 ps_pglobal_lookup(struct ps_prochandle *P, const char *object_name,
339 if (Plookup_by_name(P, object_name, sym_name, &sym) == 0) {
357 ps_pglobal_sym(struct ps_prochandle *P, const char *object_name,
363 if (Plookup_by_name(P, object_name, sym_name, &sym) == 0) {
375 if (Plookup_by_name(P, object_name, sym_name, symp) == 0)