PLWP_GETGWINDOWS(3PROC) Process Control Library Functions PLWP_GETGWINDOWS(3PROC)

Plwp_getgwindows
get thread unspilled register windows

int
Plwp_getgwindows(struct ps_prochandle *P, lwpid_t lwpid, gwindows_t *gwins);

The Plwp_getgwindows() function returns information about register windows that were not spilled to the stack for the thread identified by lwpid in the process handle P. The argument gwins will be filled in with information about the register windows.

Upon successful completion, the Plwp_getgwindows() function returns 0 and gwins is filled in with information about the windows. Otherwise, -1 is returned and errno is set to indicate the error.

For a full list of possible errors see the DIAGNOSTICS section in proc(5).

The Plwp_getgwindows() function will fail if:

The process handle P does not have any gwindows information.
The process handle P refers to a live process and it is not stopped.
The process handle P refers to a live process and there is no thread with id lwpid.
The process handle P refers to a core file and there is no thread with id lwpid.

The Plwp_getgwindows() function is only available on SPARC platforms.

Uncommitted

See LOCKING in libproc(3LIB).

libproc(3LIB), proc(5)
May 11, 2016 OmniOS