Add #ifdef MQUEUE for db_show_mqueue_cmd().

XXX: Wrong.  DDB should be dynamic, modular, etc.
This commit is contained in:
rmind 2009-07-19 02:37:33 +00:00
parent d193f80bcb
commit 6227d22ed0
2 changed files with 10 additions and 4 deletions

View File

@ -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 @@ static const struct db_command db_show_cmds[] = {
"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,

View File

@ -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 @@ db_show_aio_jobs(db_expr_t addr, bool haddr,
}
#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 @@ db_show_mqueue_cmd(db_expr_t addr, bool haddr,
mqueue_print_list(db_printf);
#endif
}
#endif
void
db_show_module_cmd(db_expr_t addr, bool haddr,