dumpthread
dumpthread(p, td, p->p_flag & P_HADTHREADS);
dumpthread(p, td, 1);
static void dumpthread(volatile struct proc *p, volatile struct thread *td,