From 54e2d39fa084cad1ce98614653948c6a8251887d Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 10 Jul 2004 21:43:23 +0000 Subject: Update for the KDB framework: o Check kdb_active instead of db_active and do so unconditionally. --- sys/kern/tty_cons.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'sys/kern/tty_cons.c') diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index e44ea5f..54a287c 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -562,16 +563,12 @@ cncheckc(void) return (-1); STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) { cn = cnd->cnd_cn; -#ifdef DDB - if (!db_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) { -#endif + if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) { c = cn->cn_checkc(cn); if (c != -1) { return (c); } -#ifdef DDB } -#endif } return (-1); } @@ -587,21 +584,13 @@ cnputc(int c) return; STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) { cn = cnd->cnd_cn; -#ifdef DDB - if (!db_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) { -#endif + if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) { if (c == '\n') cn->cn_putc(cn, '\r'); cn->cn_putc(cn, c); -#ifdef DDB } -#endif } -#ifdef DDB - if (console_pausing && !db_active && (c == '\n')) { -#else - if (console_pausing && (c == '\n')) { -#endif + if (console_pausing && c == '\n' && !kdb_active) { for (cp = console_pausestr; *cp != '\0'; cp++) cnputc(*cp); if (cngetc() == '.') -- cgit v1.1