Module Name: src
Committed By: mrg
Date: Sat Jan 23 01:32:06 UTC 2010
Modified Files:
src/share/man/man4: ddb.4
src/sys/arch/powerpc/powerpc: db_interface.c
Log Message:
document powerpc ddb commands. PR#38307.
To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/share/man/man4/ddb.4
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/powerpc/powerpc/db_interface.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man4/ddb.4
diff -u src/share/man/man4/ddb.4:1.129 src/share/man/man4/ddb.4:1.130
--- src/share/man/man4/ddb.4:1.129 Sun Jan 10 09:08:23 2010
+++ src/share/man/man4/ddb.4 Sat Jan 23 01:32:06 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: ddb.4,v 1.129 2010/01/10 09:08:23 wiz Exp $
+.\" $NetBSD: ddb.4,v 1.130 2010/01/23 01:32:06 mrg Exp $
.\"
.\" Copyright (c) 1997 - 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -938,12 +938,33 @@
.Dv DEBUG
option.
.El
+.Ss POWERPC
+.Bl -tag -width "traptrace" -compact
+.It Ic ctx
+Print process MMU context information.
+.It Ic pv
+Print PA->VA mapping information.
+.It Ic reset
+Reset the system.
+.It Ic tf
+Display the contents of the trapframe.
+.It Ic tlb
+Display instruction translation storage buffer information.
+.It Ic dcr
+Set the DCR register.
+Must be between 0x00 and 0x3ff.
+.It Ic user
+Display user memory.
+Use the
+.Dq i
+modifier to get instruction decoding.
+.El
.Ss SH3
.Bl -tag -width "traptrace" -compact
.It Ic tlb
-Print TLB entries
+Print TLB entries.
.It Ic cache
-Print cache entries
+Print cache entries.
.It Ic frame
Print switch frame and trap frames.
.It Ic stack
Index: src/sys/arch/powerpc/powerpc/db_interface.c
diff -u src/sys/arch/powerpc/powerpc/db_interface.c:1.39 src/sys/arch/powerpc/powerpc/db_interface.c:1.40
--- src/sys/arch/powerpc/powerpc/db_interface.c:1.39 Wed Oct 17 19:56:47 2007
+++ src/sys/arch/powerpc/powerpc/db_interface.c Sat Jan 23 01:32:06 2010
@@ -1,8 +1,8 @@
-/* $NetBSD: db_interface.c,v 1.39 2007/10/17 19:56:47 garbled Exp $ */
+/* $NetBSD: db_interface.c,v 1.40 2010/01/23 01:32:06 mrg Exp $ */
/* $OpenBSD: db_interface.c,v 1.2 1996/12/28 06:21:50 rahnds Exp $ */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.39 2007/10/17 19:56:47 garbled Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.40 2010/01/23 01:32:06 mrg Exp $");
#define USERACC
@@ -194,16 +194,33 @@
#ifdef DDB
const struct db_command db_machine_command_table[] = {
- { DDB_ADD_CMD("ctx", db_ppc4xx_ctx, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("pv", db_ppc4xx_pv, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("reset", db_ppc4xx_reset, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("tf", db_ppc4xx_tf, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("tlb", db_ppc4xx_dumptlb, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("dcr", db_ppc4xx_dcr, CS_MORE|CS_SET_DOT, NULL,NULL,NULL) },
+ { DDB_ADD_CMD("ctx", db_ppc4xx_ctx, 0,
+ "Print process MMU context information", NULL,NULL) },
+ { DDB_ADD_CMD("pv", db_ppc4xx_pv, 0,
+ "Print PA->VA mapping information",
+ "address",
+ " address:\tphysical address to look up") },
+ { DDB_ADD_CMD("reset", db_ppc4xx_reset, 0,
+ "Reset the system ", NULL,NULL) },
+ { DDB_ADD_CMD("tf", db_ppc4xx_tf, 0,
+ "Display the contents of the trapframe",
+ "address",
+ " address:\tthe struct trapframe to print") },
+ { DDB_ADD_CMD("tlb", db_ppc4xx_dumptlb, 0,
+ "Display instruction translation storage buffer information.",
+ NULL,NULL) },
+ { DDB_ADD_CMD("dcr", db_ppc4xx_dcr, CS_MORE|CS_SET_DOT,
+ "Set the DCR register",
+ "dcr",
+ " dcr:\tNew DCR value (between 0x0 and 0x3ff)") },
#ifdef USERACC
- { DDB_ADD_CMD("user", db_ppc4xx_useracc, 0, NULL,NULL,NULL) },
+ { DDB_ADD_CMD("user", db_ppc4xx_useracc, 0,
+ "Display user memory.", "[address][,count]",
+ " address:\tuserspace address to start\n"
+ " count:\tnumber of bytes to display") },
#endif
- { DDB_ADD_CMD(NULL, NULL, 0, NULL,NULL,NULL) }
+ { DDB_ADD_CMD(NULL, NULL, 0,
+ NULL,NULL,NULL) }
};
static void