95 int Lwait(struct ps_lwphandle *Lwp, uint_t msec);
96 int Lstop(struct ps_lwphandle *Lwp, uint_t msec);
97 int Ldstop(struct ps_lwphandle *Lwp);
98 int Lstate(struct ps_lwphandle *Lwp);
99 const lwpsinfo_t *Lpsinfo(struct ps_lwphandle *Lwp);
100 const lwpstatus_t *Lstatus(struct ps_lwphandle *Lwp);
101 int Lgetareg(struct ps_lwphandle *Lwp, int regno, prgreg_t *preg);
102 int Lputareg(struct ps_lwphandle *Lwp, int regno, prgreg_t reg);
103 int Lsetrun(struct ps_lwphandle *Lwp, int sig, int flags);
104 int Lclearsig(struct ps_lwphandle *Lwp);
105 int Lclearfault(struct ps_lwphandle *Lwp);
106 int Lxecbkpt(struct ps_lwphandle *Lwp, ulong_t saved);
107 int Lxecwapt(struct ps_lwphandle *Lwp, const prwatch_t *wp);
108 void Lsync(struct ps_lwphandle *Lwp);
109
110 /* Plwpregs.c */
111 int Plwp_getregs(struct ps_prochandle *Pr, lwpid_t i, prgregset_t gr);
112 int Plwp_setregs(struct ps_prochandle *Pr, lwpid_t i, const prgregset_t gr);
113 int Plwp_getfpregs(struct ps_prochandle *Pr, lwpid_t i, prfpregset_t *fp);
114 int Plwp_setfpregs(struct ps_prochandle *Pr, lwpid_t i, const prfpregset_t *fp);
115 #if defined(sparc) || defined(__sparc)
116 int Plwp_getxregs(struct ps_prochandle *Pr, lwpid_t i, prxregset_t *xr);
117 int Plwp_setxregs(struct ps_prochandle *Pr, lwpid_t i, const prxregset_t *xr);
118 #if defined(__sparcv9)
119 int Plwp_getasrs(struct ps_prochandle *Pr, lwpid_t i, asrset_t asrs);
120 int Plwp_setasrs(struct ps_prochandle *Pr, lwpid_t i, const asrset_t asrs);
121 #endif /* __sparcv9 */
122 #endif /* __sparc */
123 int Plwp_getpsinfo(struct ps_prochandle *Pr, lwpid_t i, lwpsinfo_t *lps);
124
125 /* Pcore.c */
126 struct ps_prochandle *Pfgrab_core(int fd, const char *aout, int *perr);
127 struct ps_prochandle *Pgrab_core(const char *core, const char *aout,
128 int gflag, int *perr);
129
130 /* Pisprocdir.c */
131 int Pisprocdir(struct ps_prochandle *Pr, const char *dir);
132
133 /* Pservice.c */
134 ps_err_e ps_pdmodel(struct ps_prochandle *Pr, int *modelp);
135 ps_err_e ps_pread(struct ps_prochandle *Pr,
136 psaddr_t addr, void *buf, size_t size);
137 ps_err_e ps_pwrite(struct ps_prochandle *Pr,
138 psaddr_t addr, const void *buf, size_t size);
139 ps_err_e ps_pdread(struct ps_prochandle *Pr,
140 psaddr_t addr, void *buf, size_t size);
141 ps_err_e ps_pdwrite(struct ps_prochandle *Pr,
142 psaddr_t addr, const void *buf, size_t size);
|
95 int Lwait(struct ps_lwphandle *Lwp, uint_t msec);
96 int Lstop(struct ps_lwphandle *Lwp, uint_t msec);
97 int Ldstop(struct ps_lwphandle *Lwp);
98 int Lstate(struct ps_lwphandle *Lwp);
99 const lwpsinfo_t *Lpsinfo(struct ps_lwphandle *Lwp);
100 const lwpstatus_t *Lstatus(struct ps_lwphandle *Lwp);
101 int Lgetareg(struct ps_lwphandle *Lwp, int regno, prgreg_t *preg);
102 int Lputareg(struct ps_lwphandle *Lwp, int regno, prgreg_t reg);
103 int Lsetrun(struct ps_lwphandle *Lwp, int sig, int flags);
104 int Lclearsig(struct ps_lwphandle *Lwp);
105 int Lclearfault(struct ps_lwphandle *Lwp);
106 int Lxecbkpt(struct ps_lwphandle *Lwp, ulong_t saved);
107 int Lxecwapt(struct ps_lwphandle *Lwp, const prwatch_t *wp);
108 void Lsync(struct ps_lwphandle *Lwp);
109
110 /* Plwpregs.c */
111 int Plwp_getregs(struct ps_prochandle *Pr, lwpid_t i, prgregset_t gr);
112 int Plwp_setregs(struct ps_prochandle *Pr, lwpid_t i, const prgregset_t gr);
113 int Plwp_getfpregs(struct ps_prochandle *Pr, lwpid_t i, prfpregset_t *fp);
114 int Plwp_setfpregs(struct ps_prochandle *Pr, lwpid_t i, const prfpregset_t *fp);
115 int Plwp_getxregs(struct ps_prochandle *Pr, lwpid_t i, prxregset_t *xr);
116 int Plwp_setxregs(struct ps_prochandle *Pr, lwpid_t i, const prxregset_t *xr);
117 #if defined(__sparcv9)
118 int Plwp_getasrs(struct ps_prochandle *Pr, lwpid_t i, asrset_t asrs);
119 int Plwp_setasrs(struct ps_prochandle *Pr, lwpid_t i, const asrset_t asrs);
120 #endif /* __sparcv9 */
121 int Plwp_getpsinfo(struct ps_prochandle *Pr, lwpid_t i, lwpsinfo_t *lps);
122
123 /* Pcore.c */
124 struct ps_prochandle *Pfgrab_core(int fd, const char *aout, int *perr);
125 struct ps_prochandle *Pgrab_core(const char *core, const char *aout,
126 int gflag, int *perr);
127
128 /* Pisprocdir.c */
129 int Pisprocdir(struct ps_prochandle *Pr, const char *dir);
130
131 /* Pservice.c */
132 ps_err_e ps_pdmodel(struct ps_prochandle *Pr, int *modelp);
133 ps_err_e ps_pread(struct ps_prochandle *Pr,
134 psaddr_t addr, void *buf, size_t size);
135 ps_err_e ps_pwrite(struct ps_prochandle *Pr,
136 psaddr_t addr, const void *buf, size_t size);
137 ps_err_e ps_pdread(struct ps_prochandle *Pr,
138 psaddr_t addr, void *buf, size_t size);
139 ps_err_e ps_pdwrite(struct ps_prochandle *Pr,
140 psaddr_t addr, const void *buf, size_t size);
|