HomeFreeBSD

Use kdb_thr_* to iterate over threads consistently in DDB.

Description

Use kdb_thr_* to iterate over threads consistently in DDB.

The "findstack", "show all trace", and "show active trace" commands
were iterating over allproc to enumerate threads. This missed threads
executing in exit1() after being removed from allproc.

Reviewed by: kib
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D27829

Details

Provenance
jhbAuthored on Jan 1 2021, 12:01 AM
Reviewer
kib
Differential Revision
D27829: Use kdb_thr_* to iterate over threads consistently in DDB.
Parents
rGae450907c639: Use kdb_thr_from_pid() in db_lookup_thread().
Branches
Unknown
Tags
Unknown