Displaying 1 result from an estimated 1 matches for "pr_lwp".
Did you mean:
drblwp
2008 Mar 04
0
Determining curthread pointer (ulwp_t) via libproc on i386
...es:
--------------------------------------------------------------------------------
if ((Pr = Pgrab(pid, NULL, &gret)) == NULL) {
fprintf(stderr, "cannot control process %d\n", pid);
exit(1);
}
if ((lwp = &Pstatus(Pr)->pr_lwp) == NULL) {
fprintf(stderr, "Couldn''t grab pr_lwp\n");
exit(1);
}
#if defined(__amd64)
if (Pstatus(Pr)->pr_dmodel == PR_MODEL_LP64) {
addr = lwp->pr_reg[REG_FSBASE];
} else {
addr = lwp...