aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb/db_output.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1994-08-27 16:14:39 +0000
committerDavid Greenman <dg@FreeBSD.org>1994-08-27 16:14:39 +0000
commit8a129caed5f1b834a2d3f825478f5f0273f9cb9d (patch)
treeb3ca65b5c2af24b8ce278da15822a7fd638bbeb5 /sys/ddb/db_output.c
parenteb3ae6fd947ff525461039e79036c3ee02cfb060 (diff)
downloadsrc-8a129caed5f1b834a2d3f825478f5f0273f9cb9d.tar.gz
src-8a129caed5f1b834a2d3f825478f5f0273f9cb9d.zip
1) Changed ddb into a option rather than a pseudo-device (use options DDB
in your kernel config now). 2) Added ps ddb function from 1.1.5. Cleaned it up a bit and moved into its own file. 3) Added \r handing in db_printf. 4) Added missing memory usage stats to statclock(). 5) Added dummy function to pseudo_set so it will be emitted if there are no other pseudo declarations.
Notes
Notes: svn path=/head/; revision=2320
Diffstat (limited to 'sys/ddb/db_output.c')
-rw-r--r--sys/ddb/db_output.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/ddb/db_output.c b/sys/ddb/db_output.c
index 98b668a3fbf4..f2b14e4789a2 100644
--- a/sys/ddb/db_output.c
+++ b/sys/ddb/db_output.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_output.c,v 1.6 1993/12/19 00:49:45 wollman Exp $
+ * $Id: db_output.c,v 1.7 1994/08/13 03:49:21 wollman Exp $
*/
/*
@@ -107,6 +107,13 @@ db_putchar(c)
db_last_non_space = db_output_position;
}
else if (c == '\n') {
+ /* Newline */
+ cnputc(c);
+ db_output_position = 0;
+ db_last_non_space = 0;
+ db_check_interrupt();
+ }
+ else if (c == '\r') {
/* Return */
cnputc(c);
db_output_position = 0;