diff options
author | sam <sam@FreeBSD.org> | 2008-03-25 20:36:32 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-03-25 20:36:32 +0000 |
commit | 8e10753c85ea5f78b7f17da0680e9673d12a3f39 (patch) | |
tree | c770cb5d4eaa07771e76b1810d58e0e5ee11991d /sys/ddb/db_ps.c | |
parent | 172c1f8c45c281948c9562ee2b7ce282df01fde0 (diff) | |
download | FreeBSD-src-8e10753c85ea5f78b7f17da0680e9673d12a3f39.zip FreeBSD-src-8e10753c85ea5f78b7f17da0680e9673d12a3f39.tar.gz |
enable dynamic addition of "show all" commands
MFC after: 3 weeks
Diffstat (limited to 'sys/ddb/db_ps.c')
-rw-r--r-- | sys/ddb/db_ps.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index 5d5e068..bf14ecf 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -46,6 +46,15 @@ __FBSDID("$FreeBSD$"); static void dumpthread(volatile struct proc *p, volatile struct thread *td, int all); +/* + * At least one non-optional show-command must be implemented using + * DB_SHOW_ALL_COMMAND() so that db_show_all_cmd_set gets created. + * Here is one. + */ +DB_SHOW_ALL_COMMAND(procs, db_procs_cmd) +{ + db_ps(addr, have_addr, count, modif); +} /* * Layout: |