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

Plwp_getgwindowsget thread unspilled register windows

Process Control Library (libproc, -lproc)

#include <libproc.h>

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

The () 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 and gwins is filled in with information about the windows. Otherwise, is returned and is set to indicate the error.

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

The Plwp_getgwindows() function will fail if:

The process handle P does not have any 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 () function is only available on platforms.

See in libproc(3LIB).

libproc(3LIB), proc(5)

November 27, 2023 OmniOS