PERFORCE change 134604 for review

Sam Leffler sam at FreeBSD.org
Fri Feb 1 13:22:28 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=134604

Change 134604 by sam at 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:


More information about the p4-projects mailing list