summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_input.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-12-25 23:06:51 +0000
committerrwatson <rwatson@FreeBSD.org>2007-12-25 23:06:51 +0000
commit58739243681aa81940b676b9227a070fff00887c (patch)
tree088e1e3ce0a641612ba90e21c693b49eeadaa8d6 /sys/ddb/db_input.c
parent6bd00b26895bffe336f45242c749e29dddbc834f (diff)
downloadFreeBSD-src-58739243681aa81940b676b9227a070fff00887c.zip
FreeBSD-src-58739243681aa81940b676b9227a070fff00887c.tar.gz
Add a new DDB(4) facility, output capture. Input and output from DDB may be
captured to a memory buffer for later inspection using sysctl(8), or in the future, to a textdump. A new DDB command, "capture", is added, which accepts arguments "on", "off", "reset", and "status". A new DDB sysctl tree, debug.ddb.capture, is added, which can be used to resize the capture buffer and extract buffer contents. MFC after: 3 months
Diffstat (limited to 'sys/ddb/db_input.c')
-rw-r--r--sys/ddb/db_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c
index 27af265..dc07a1d 100644
--- a/sys/ddb/db_input.c
+++ b/sys/ddb/db_input.c
@@ -323,6 +323,7 @@ db_readline(lstart, lsize)
while (!db_inputchar(cngetc()))
continue;
+ db_capture_write(lstart, db_le - db_lbuf_start);
db_printf("\n"); /* synch output position */
*db_le = 0;
OpenPOWER on IntegriCloud