MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Process Control Library Functions              pslgetregs(3PROC)



NAME
     pslgetregs,  pslsetregs,   pslgetfpregs,   pslsetfpregs,
     pslgetxregsize,  pslgetxregs, pslsetxregs - routines that
     access the target process register in libthreaddb

SYNOPSIS
     #include 

      pserre pslgetregs(struct psprochandle *ph, lwpidt lid,
          prgregsett gregset);


     pserre pslsetregs(struct psprochandle *ph, lwpidt lid,
          static prgregsett gregset);


     pserre pslgetfpregs(struct psprochandle *ph, lwpidt lid,
          prfpregsett *fpregs);


     pserre pslsetfpregs(struct psprochandle *ph, lwpidt lid,
          static prfpregsett *fpregs);


     pserre pslgetxregsize(struct psprochandle *ph, lwpidt lid,
          int *xregsize);


     pserre pslgetxregs(struct psprochandle *ph, lwpidt lid,
          caddrt xregset);


     pserre pslsetxregs(struct psprochandle *ph, lwpidt lid,
          caddrt xregset);


DESCRIPTION
     pslgetregs(),        pslsetregs(),        pslgetfpregs(),
     pslsetfpregs(),      pslgetxregsize(),     pslgetxregs(),
     pslsetxregs() read and write register sets from lightweight
     processes (LWPs) within the target process identified by ph.
     pslgetregs() gets the general registers of the LWP  identi-
     fied  by  lid,  and pslsetregs() sets them. pslgetfpregs()
     gets  the  LWP's  floating   point   register   set,   while
     pslsetfpregs() sets it.

  SPARC Only
     pslgetxregsize(),pslgetxregs(),   andpslsetxregs()    are
     SPARC-specific. They do not need to be defined by a control-
     ling process on  non-SPARC  architecture.  pslgetxregsize()
     returns  in *xregsize the size of the architecture-dependent
     extra state registers. pslgetxregs() gets the  extra  state



SunOS 5.11          Last change: 30 Jan 1998                    1






Process Control Library Functions              pslgetregs(3PROC)



     registers, and pslsetxregs() sets them.

RETURN VALUES
     PSOK           The call returned successfully.


     PSNOFPREGS     Floating point registers are neither  avail-
                     able for this architecture nor for this pro-
                     cess.


     PSNOXREGS      Extra state registers are not  available  on
                     this architecture.


     PSER          The function did not return successfully.


ATRIBUTES
     See attributes(5) for description of  the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT Level                     Safe                        
    


SEE ALSO
     libcdb(3LIB),      procservice(3PROC),      attributes(5),
     threads(5)





















SunOS 5.11          Last change: 30 Jan 1998                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™