From e8a8f164206e2cf56967b0be116107eff0c993fa Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 4 Apr 2005 14:19:10 +0000 Subject: [PATCH] Add a macro to print the list of current processes independ of wait state. --- test/debug/gdb.kernel | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/debug/gdb.kernel b/test/debug/gdb.kernel index 15345c025a..4b8af5953c 100644 --- a/test/debug/gdb.kernel +++ b/test/debug/gdb.kernel @@ -1,4 +1,4 @@ -# $DragonFly: src/test/debug/gdb.kernel,v 1.2 2004/06/26 13:19:06 hmp Exp $ +# $DragonFly: src/test/debug/gdb.kernel,v 1.3 2005/04/04 14:19:10 joerg Exp $ # # Command file for the GNU Debugger, for kernel debugging. # @@ -71,6 +71,14 @@ define running_threads end end +define psax + set $proc = allproc->lh_first + while $proc != 0 + printf "%p%6d%10s\n",$proc,$proc->p_pid,$proc->p_thread->td_comm + set $proc = $proc->p_list.le_next + end +end + # Documentation, usable within GDB using the 'help' command. document kldstat Output list of loaded kernel modules in kldstat(1) style. @@ -87,3 +95,7 @@ end document running_threads List the threads which are currently running and their CPU number. end + +document psax +Output a list of processes. +end -- 2.41.0