pstack dumps a stack trace for a process, given the pid of that process. If the process named is part of a thread group, then all the threads in the group are traced.