Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: source-changes
Date: 09/29/2004 23:54:11
Module Name:	src
Committed By:	reinoud
Date:		Wed Sep 29 23:54:11 UTC 2004

Modified Files:
	src/share/man/man4: ddb.4
	src/sys/ddb: TODO db_variables.c ddbvar.h
	src/sys/kern: subr_prf.c

Log Message:
Implement ddb setting that allows all ddb output to be teed into the
kernel message buffer/log. Its off by default and can be switched on in the
kernel configuration on build time, be set as a variable in ddb and be set
using sysctl.

This adds the sysctl value
	ddb.tee_msgbuf = 0
by default.

The functionality is especially added and aimed for developers who are not
blessed with a serial console and wish to keep all their ddb output in the
log. Specifying /l as a modifier to some selected commands will also put
the output in the log but not all commands provide one nor has the same
meaning for all commands.

This feature could in the future also be implemented as an ddb command but
that could lead to more bloat allthough maybe easier for non developpers to
use when mailing their backtraces from kernel crashes.


To generate a diff of this commit:
cvs rdiff -r1.78 -r1.79 src/share/man/man4/ddb.4
cvs rdiff -r1.14 -r1.15 src/sys/ddb/TODO
cvs rdiff -r1.31 -r1.32 src/sys/ddb/db_variables.c
cvs rdiff -r1.6 -r1.7 src/sys/ddb/ddbvar.h
cvs rdiff -r1.94 -r1.95 src/sys/kern/subr_prf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.