Module Name:    src
Committed By:   rmind
Date:           Sun Jul 19 02:37:33 UTC 2009

Modified Files:
        src/sys/ddb: db_command.c db_xxx.c

Log Message:
Add #ifdef MQUEUE for db_show_mqueue_cmd().

XXX: Wrong.  DDB should be dynamic, modular, etc.


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 src/sys/ddb/db_command.c
cvs rdiff -u -r1.61 -r1.62 src/sys/ddb/db_xxx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ddb/db_command.c
diff -u src/sys/ddb/db_command.c:1.132 src/sys/ddb/db_command.c:1.133
--- src/sys/ddb/db_command.c:1.132	Fri Jun  5 04:31:47 2009
+++ src/sys/ddb/db_command.c	Sun Jul 19 02:37:33 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_command.c,v 1.132 2009/06/05 04:31:47 mrg Exp $	*/
+/*	$NetBSD: db_command.c,v 1.133 2009/07/19 02:37:33 rmind Exp $	*/
 
 /*
  * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@@ -60,12 +60,13 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.132 2009/06/05 04:31:47 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.133 2009/07/19 02:37:33 rmind Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_aio.h"
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
+#include "opt_mqueue.h"
 #include "opt_inet.h"
 #include "opt_uvmhist.h"
 #include "opt_ddbparam.h"
@@ -250,8 +251,10 @@
 	    "Print kernel modules", NULL, NULL) },
 	{ DDB_ADD_CMD("mount",	db_mount_print_cmd,	0,
 	    "Print the mount structure at address.", "[/f] address",NULL) },
+#ifdef MQUEUE
 	{ DDB_ADD_CMD("mqueue", db_show_mqueue_cmd,	0,
 	    "Print the message queues", NULL, NULL) },
+#endif
 	{ DDB_ADD_CMD("mbuf",	db_mbuf_print_cmd,	0,NULL,NULL,
 	    "-c prints all mbuf chains") },
 	{ DDB_ADD_CMD("ncache",	db_namecache_print_cmd,	0,

Index: src/sys/ddb/db_xxx.c
diff -u src/sys/ddb/db_xxx.c:1.61 src/sys/ddb/db_xxx.c:1.62
--- src/sys/ddb/db_xxx.c:1.61	Sun May 24 21:41:25 2009
+++ src/sys/ddb/db_xxx.c	Sun Jul 19 02:37:33 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_xxx.c,v 1.61 2009/05/24 21:41:25 ad Exp $	*/
+/*	$NetBSD: db_xxx.c,v 1.62 2009/07/19 02:37:33 rmind Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -37,11 +37,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_xxx.c,v 1.61 2009/05/24 21:41:25 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_xxx.c,v 1.62 2009/07/19 02:37:33 rmind Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_kgdb.h"
 #include "opt_aio.h"
+#include "opt_mqueue.h"
 #endif
 
 #ifndef _KERNEL
@@ -149,6 +150,7 @@
 }
 #endif
 
+#ifdef MQUEUE
 void
 db_show_mqueue_cmd(db_expr_t addr, bool haddr,
     db_expr_t count, const char *modif)
@@ -158,6 +160,7 @@
 	mqueue_print_list(db_printf);
 #endif
 }
+#endif
 
 void
 db_show_module_cmd(db_expr_t addr, bool haddr,

Reply via email to