summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>1998-02-25 19:53:50 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>1998-02-25 19:53:50 +0000
commit6215edb23e105cb198c45eff9bb948627c21acb2 (patch)
tree941f8a01866951b96653ebf2d8994c185066fd1a /sys/ddb/db_command.c
parentbfe01757d6663db05af58e0717be4b237644735c (diff)
Add command to print out extents. This helps in debugging PnP stuff,
and "it's just plain cool".
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 4772ee2a02b..2310a7c1298 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_command.c,v 1.13 1997/09/08 19:46:37 deraadt Exp $ */
+/* $OpenBSD: db_command.c,v 1.14 1998/02/25 19:53:46 weingart Exp $ */
/* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */
/*
@@ -34,6 +34,7 @@
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/reboot.h>
+#include <sys/extent.h>
#include <vm/vm.h>
#include <machine/db_machdep.h> /* type definitions */
@@ -308,6 +309,17 @@ db_object_print_cmd(addr, have_addr, count, modif)
_vm_object_print((vm_object_t) addr, full, db_printf);
}
+/*ARGSUSED*/
+void
+db_extent_print_cmd(addr, have_addr, count, modif)
+ db_expr_t addr;
+ int have_addr;
+ db_expr_t count;
+ char * modif;
+{
+ extent_print_all();
+}
+
/*
* 'show' commands
*/
@@ -325,6 +337,7 @@ struct db_command db_show_cmds[] = {
{ "watches", db_listwatch_cmd, 0, NULL },
{ "map", db_map_print_cmd, 0, NULL },
{ "object", db_object_print_cmd, 0, NULL },
+ { "extents", db_extent_print_cmd, 0, NULL },
{ NULL, NULL, 0, NULL, }
};