summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-11-05 15:17:51 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-11-05 15:17:51 +0000
commit6ff2a25ce0873fc736b6eaf7626f1345b6946ce0 (patch)
tree3a1e82b6ff60a2e7f12fda7a2ffe6152e0982ff4 /sys/ddb/db_command.c
parent89c67b89ea588b9f49cf468d507fcb13123316ff (diff)
Implement m_print as real ddb command "show mbuf addr" in the way other
such commands are implemented. "Ja! You'll need to update ddb.4 as well, of course." miod@
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 3bf33d09eaf..b55479d8d04 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_command.c,v 1.61 2010/01/19 01:08:16 guenther Exp $ */
+/* $OpenBSD: db_command.c,v 1.62 2010/11/05 15:17:50 claudio Exp $ */
/* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */
/*
@@ -324,6 +324,13 @@ db_malloc_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
/*ARGSUSED*/
void
+db_mbuf_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
+{
+ m_print((void *)addr, db_printf);
+}
+
+/*ARGSUSED*/
+void
db_mount_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
{
boolean_t full = FALSE;
@@ -512,6 +519,7 @@ struct db_command db_show_cmds[] = {
{ "extents", db_extent_print_cmd, 0, NULL },
{ "malloc", db_malloc_print_cmd, 0, NULL },
{ "map", db_map_print_cmd, 0, NULL },
+ { "mbuf", db_mbuf_print_cmd, 0, NULL },
{ "mount", db_mount_print_cmd, 0, NULL },
#ifdef NFSCLIENT
{ "nfsreq", db_nfsreq_print_cmd, 0, NULL },