ps_lgetregs(3T)
NAME
ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs, ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs − routines that access the target process register in libthread_db
SYNOPSIS
#include <proc_service.h>
ps_err_e ps_lgetregs(const struct ps_prochandle ∗ph,
lwpid_t lid, prgregset_t gregset)
ps_err_e ps_lsetregs(const struct ps_prochandle ∗ph,
lwpid_t lid, prgregset_t gregset)
ps_err_e ps_lgetfpregs(const struct ps_prochandle ∗ph,
lwpid_t lid, prgregset_t gregset)
ps_err_e ps_lsetfpregs(const struct ps_prochandle ∗ph,
lwpid_t lid, prgregset_t gregset)
ps_err_e ps_lgetxregsize(const struct ps_prochandle ∗ph,
lwpid_t lid, int ∗xregsize)
ps_err_e ps_lgetxregs(const struct ps_prochandle ∗ph,
lwpid_t lid, prxregset_t xregset)
ps_err_e ps_lsetxregs(const struct ps_prochandle ∗ph,
lwpid_t lid, prxregset_t xregset)
DESCRIPTION
ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs, ps_lgetxregsize, ps_lgetxregs , ps_lsetxregs read and write register sets from lightweight processes ( LWP ´s) within the target process identified by ph. ps_lgetregs gets the general registers of the LWP identified by lid, and ps_lsetregs sets them. ps_lgetfpregs gets the LWP ´s floating point register set, while ps_lsetfpregs sets it. ps_getxregsize, ps_getxregs, and ps_setxregs are SPARC-specific. They do not need to be defined by a controlling process on non-SPARC architecture. ps_getxregsize returns in ∗xregsize the size of the architecture-dependent extra state registers. ps_getxregs gets the extra state registers, and ps_setxregs sets them.
RETURN VALUES
PS_OK The call returned successfully.
PS_NOFPREGS
Floating point registers are neither available for this architecture nor for this process.
PS_NOXREGS
Extra state registers are not available on this architecture.
PS_ERR The function did not return successfully.
ATTRIBUTES
See attributes(5) for description of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| MT Level | Safe |
SEE ALSO
libthread(3T), libthread_db(3T), proc_service(3T), libthread_db(4), attributes(5)
SunOS 5.6 — Last change: 1 Jun 1996