Module Name: src Committed By: mrg Date: Sun Jan 10 08:24:32 UTC 2010
Modified Files: src/share/man/man4: ddb.4 src/sys/arch/sparc/sparc: db_interface.c Log Message: document sparc ddb commands. PR#38312. To generate a diff of this commit: cvs rdiff -u -r1.127 -r1.128 src/share/man/man4/ddb.4 cvs rdiff -u -r1.85 -r1.86 src/sys/arch/sparc/sparc/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.127 src/share/man/man4/ddb.4:1.128 --- src/share/man/man4/ddb.4:1.127 Fri Jun 5 09:29:15 2009 +++ src/share/man/man4/ddb.4 Sun Jan 10 08:24:32 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: ddb.4,v 1.127 2009/06/05 09:29:15 wiz Exp $ +.\" $NetBSD: ddb.4,v 1.128 2010/01/10 08:24:32 mrg Exp $ .\" .\" Copyright (c) 1997 - 2009 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -956,8 +956,20 @@ .El .Ss SPARC .Bl -tag -width "traptrace" -compact +.It Ic cpu +Switch to another cpu. .It Ic prom -Exit to the Sun PROM monitor. +Enter the Sun PROM monitor. +.It Ic proc +Display some information about the LWP pointed to, or curlwp. +.It Ic pcb +Display information about the +.Dq struct pcb +listed. +.It Ic page +Display the pointer to the +.Dq struct vm_page +for this physical address. .El .Ss SPARC64 .Bl -tag -width "traptrace" -compact Index: src/sys/arch/sparc/sparc/db_interface.c diff -u src/sys/arch/sparc/sparc/db_interface.c:1.85 src/sys/arch/sparc/sparc/db_interface.c:1.86 --- src/sys/arch/sparc/sparc/db_interface.c:1.85 Sat Nov 21 04:16:51 2009 +++ src/sys/arch/sparc/sparc/db_interface.c Sun Jan 10 08:24:32 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.85 2009/11/21 04:16:51 rmind Exp $ */ +/* $NetBSD: db_interface.c,v 1.86 2010/01/10 08:24:32 mrg Exp $ */ /* * Mach Operating System @@ -33,7 +33,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.85 2009/11/21 04:16:51 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.86 2010/01/10 08:24:32 mrg Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -485,14 +485,23 @@ #endif /* MULTIPROCESSOR */ const struct db_command db_machine_command_table[] = { - { DDB_ADD_CMD("prom", db_prom_cmd, 0, NULL,NULL,NULL) }, - { DDB_ADD_CMD("proc", db_proc_cmd, 0, NULL,NULL,NULL) }, - { DDB_ADD_CMD("pcb", db_dump_pcb, 0, NULL,NULL,NULL) }, - { DDB_ADD_CMD("page", db_page_cmd, 0, NULL,NULL,NULL) }, + { DDB_ADD_CMD("prom", db_prom_cmd, 0, + "Enter the Sun PROM monitor.",NULL,NULL) }, + { DDB_ADD_CMD("proc", db_proc_cmd, 0, + "Display some information about an LWP", + "[addr]"," addr:\tstruct lwp address (curlwp otherwise)") }, + { DDB_ADD_CMD("pcb", db_dump_pcb, 0, + "Display information about a struct pcb", + "[address]", + " address:\tthe struct pcb to print (curpcb otherwise)") }, + { DDB_ADD_CMD("page", db_page_cmd, 0, + "Display the address of a struct vm_page given a physical address", + "pa", " pa:\tphysical address to look up") }, #ifdef MULTIPROCESSOR - { DDB_ADD_CMD("cpu", db_cpu_cmd, 0, NULL,NULL,NULL) }, + { DDB_ADD_CMD("cpu", db_cpu_cmd, 0, + "switch to another cpu's registers", "cpu-no", NULL) }, #endif - { DDB_ADD_CMD(NULL, NULL, 0,NULL,NULL,NULL) } + { DDB_ADD_CMD(NULL, NULL, 0, NULL,NULL,NULL) } }; #endif /* DDB */