mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
Wrap db_active check in #ifdef DDB, as db_active is not defined ifndef
DDB.
This commit is contained in:
parent
90e6b5447f
commit
dae6d925a2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121183
|
@ -538,12 +538,16 @@ 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
|
||||
c = cn->cn_checkc(cn);
|
||||
if (c != -1) {
|
||||
return (c);
|
||||
}
|
||||
#ifdef DDB
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return (-1);
|
||||
}
|
||||
|
@ -559,11 +563,15 @@ 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 (c == '\n')
|
||||
cn->cn_putc(cn, '\r');
|
||||
cn->cn_putc(cn, c);
|
||||
#ifdef DDB
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#ifdef DDB
|
||||
if (console_pausing && !db_active && (c == '\n')) {
|
||||
|
|
Loading…
Reference in a new issue