Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2008 21:22:27 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 134604 for review
Message-ID:  <200802012122.m11LMRRN009006@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134604

Change 134604 by sam@sam_ebb on 2008/02/01 21:22:02

	add hack a la "show" so db_show_all_cmd_set gets created

Affected files ...

.. //depot/projects/vap/sys/ddb/db_command.c#7 edit
.. //depot/projects/vap/sys/ddb/db_ps.c#5 edit

Differences ...

==== //depot/projects/vap/sys/ddb/db_command.c#7 (text+ko) ====

@@ -81,7 +81,6 @@
  */
 
 static struct command db_show_all_cmds[] = {
-	{ "procs",	db_ps,			0,	0 },
 	{ (char *)0 }
 };
 

==== //depot/projects/vap/sys/ddb/db_ps.c#5 (text+ko) ====

@@ -46,6 +46,15 @@
 
 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802012122.m11LMRRN009006>