Add simple help messages for MD machine commands on ddb(4).

PR port-mips/38306
This commit is contained in:
tsutsui 2008-05-23 17:01:32 +00:00
parent 2c2348b398
commit 31d6cdf996
2 changed files with 16 additions and 7 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ddb.4,v 1.113 2008/05/02 18:11:05 martin Exp $
.\" $NetBSD: ddb.4,v 1.114 2008/05/23 17:01:32 tsutsui Exp $
.\"
.\" Copyright (c) 1997 - 2007 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -56,7 +56,7 @@
.\" any improvements or extensions that they make and grant Carnegie Mellon
.\" the rights to redistribute these changes.
.\"
.Dd February 18, 2008
.Dd May 23, 2008
.Dt DDB 4
.Os
.Sh NAME
@ -1045,6 +1045,8 @@ Given a trap frame address, print out the trap frame.
.El
.Ss MIPS
.Bl -tag -width "traptrace" -compact
.It Ic cp0
Dump CP0 (coprocessor 0) register values.
.It Ic kvtop
Print the physical address for a given kernel virtual address.
.It Ic tlb

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.63 2007/10/17 19:55:37 garbled Exp $ */
/* $NetBSD: db_interface.c,v 1.64 2008/05/23 17:01:32 tsutsui Exp $ */
/*
* Mach Operating System
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.63 2007/10/17 19:55:37 garbled Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.64 2008/05/23 17:01:32 tsutsui Exp $");
#include "opt_cputype.h" /* which mips CPUs do we support? */
#include "opt_ddb.h"
@ -542,9 +542,16 @@ db_cp0dump_cmd(db_expr_t addr, bool have_addr, db_expr_t count,
}
const struct db_command db_machine_command_table[] = {
{ DDB_ADD_CMD("kvtop", db_kvtophys_cmd, 0, NULL,NULL,NULL) },
{ DDB_ADD_CMD("tlb", db_tlbdump_cmd, 0, NULL,NULL,NULL) },
{ DDB_ADD_CMD("cp0", db_cp0dump_cmd, 0, NULL,NULL,NULL) },
{ DDB_ADD_CMD("cp0", db_cp0dump_cmd, 0,
"Dump CP0 registers.",
NULL, NULL) },
{ DDB_ADD_CMD("kvtop", db_kvtophys_cmd, 0,
"Print the physical address for a given kernel virtual address",
"address",
" address:\tvirtual address to look up") },
{ DDB_ADD_CMD("tlb", db_tlbdump_cmd, 0,
"Print out TLB entries. (only works with options DEBUG)",
NULL, NULL) },
{ DDB_ADD_CMD(NULL, NULL, 0, NULL,NULL,NULL) }
};
#endif /* !KGDB */