]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use kdb_thr_* to iterate over threads consistently in DDB.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 1 Jan 2021 00:01:35 +0000 (16:01 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 1 Jan 2021 00:01:35 +0000 (16:01 -0800)
commit3e06c7da020fadb8ffbfc26d634ccb321e7e22f7
tree861529a591ea6a3956096c6253909346a87bb4cd
parentae450907c6394332063566b0009f7aa0c296133e
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
sys/ddb/db_command.c
sys/ddb/db_ps.c