we can use show callout now from crash

This commit is contained in:
christos 2015-02-08 19:41:39 +00:00
parent 7d5216c057
commit 1a5609a923
1 changed files with 2 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_command.c,v 1.143 2013/10/19 15:20:52 christos Exp $ */ /* $NetBSD: db_command.c,v 1.144 2015/02/08 19:41:39 christos Exp $ */
/* /*
* Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@ -60,7 +60,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.143 2013/10/19 15:20:52 christos Exp $"); __KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.144 2015/02/08 19:41:39 christos Exp $");
#ifdef _KERNEL_OPT #ifdef _KERNEL_OPT
#include "opt_aio.h" #include "opt_aio.h"
@ -212,10 +212,8 @@ static void db_vmem_print_cmd(db_expr_t, bool, db_expr_t, const char *);
static const struct db_command db_show_cmds[] = { static const struct db_command db_show_cmds[] = {
/*added from all sub cmds*/ /*added from all sub cmds*/
#ifdef _KERNEL /* XXX CRASH(8) */
{ DDB_ADD_CMD("callout", db_show_callout, { DDB_ADD_CMD("callout", db_show_callout,
0 ,"List all used callout functions.",NULL,NULL) }, 0 ,"List all used callout functions.",NULL,NULL) },
#endif
{ DDB_ADD_CMD("pages", db_show_all_pages, { DDB_ADD_CMD("pages", db_show_all_pages,
0 ,"List all used memory pages.",NULL,NULL) }, 0 ,"List all used memory pages.",NULL,NULL) },
{ DDB_ADD_CMD("proc", db_show_proc, { DDB_ADD_CMD("proc", db_show_proc,
@ -305,10 +303,8 @@ static const struct db_command db_command_table[] = {
"Continue execution.", "[/c]",NULL) }, "Continue execution.", "[/c]",NULL) },
{ DDB_ADD_CMD("call", db_fncall, CS_OWN, { DDB_ADD_CMD("call", db_fncall, CS_OWN,
"Call the function", "address[(expression[,...])]",NULL) }, "Call the function", "address[(expression[,...])]",NULL) },
#ifdef _KERNEL /* XXX CRASH(8) */
{ DDB_ADD_CMD("callout", db_show_callout, 0, NULL, { DDB_ADD_CMD("callout", db_show_callout, 0, NULL,
NULL,NULL ) }, NULL,NULL ) },
#endif
{ DDB_ADD_CMD("continue", db_continue_cmd, 0, { DDB_ADD_CMD("continue", db_continue_cmd, 0,
"Continue execution.", "[/c]",NULL) }, "Continue execution.", "[/c]",NULL) },
{ DDB_ADD_CMD("d", db_delete_cmd, 0, { DDB_ADD_CMD("d", db_delete_cmd, 0,