prldump
prldump("Pstopstatus", &P->status.pr_lwp);
prldump("Lstopstatus", &L->lwp_status);
extern void prldump(const char *, lwpstatus_t *);