freebsd-src/sys/ddb
John Baldwin 47877889f2 ddb ps: Use the pidhash to enumerate processes not in allproc.
Exiting processes that have been removed from allproc but are still
executing are not yet marked PRS_ZOMBIE, so they were not listed (for
example, if a thread panics during exit1()).  To detect these
processes, clear p_list.le_prev to NULL explicitly after removing a
process from the allproc list and check for this sentinel rather than
PRS_ZOMBIE when walking the pidhash.

While here, simplify the pidhash walk to use a single outer loop.

Reviewed by:	kib
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D27824
2020-12-31 16:00:05 -08:00
..
db_access.c
db_access.h
db_break.c ddb: clean up empty lines in .c and .h files 2020-09-01 22:14:30 +00:00
db_break.h
db_capture.c
db_command.c
db_command.h
db_examine.c
db_expr.c
db_input.c
db_lex.c
db_lex.h
db_main.c [PowerPC] More relocation fixes 2020-06-21 03:39:26 +00:00
db_output.c ddb: clean up empty lines in .c and .h files 2020-09-01 22:14:30 +00:00
db_output.h
db_print.c
db_ps.c ddb ps: Use the pidhash to enumerate processes not in allproc. 2020-12-31 16:00:05 -08:00
db_run.c
db_script.c
db_sym.c db_search_symbol: prevent pollution from bogus symbols 2020-10-26 16:42:53 +00:00
db_sym.h
db_textdump.c
db_thread.c
db_variables.c
db_variables.h
db_watch.c ddb: clean up empty lines in .c and .h files 2020-09-01 22:14:30 +00:00
db_watch.h
db_write_cmd.c ddb: clean up empty lines in .c and .h files 2020-09-01 22:14:30 +00:00
ddb.h [PowerPC] More relocation fixes 2020-06-21 03:39:26 +00:00