If DDB is defined, and RBUF_FERR occurs on a serial console port, enter ddb.

Fixes PR 4173.
This commit is contained in:
mhitch 1997-11-21 17:26:29 +00:00
parent b0e8edf692
commit 4f4912d825

View File

@ -1,4 +1,4 @@
/* $NetBSD: dc.c,v 1.34 1997/11/08 21:55:05 jonathan Exp $ */
/* $NetBSD: dc.c,v 1.35 1997/11/21 17:26:29 mhitch Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dc.c,v 1.34 1997/11/08 21:55:05 jonathan Exp $");
__KERNEL_RCSID(0, "$NetBSD: dc.c,v 1.35 1997/11/21 17:26:29 mhitch Exp $");
/*
* devDC7085.c --
@ -772,6 +772,12 @@ dcrint(sc)
#endif
return;
}
#ifdef DDB
if (c & RBUF_FERR && tp->t_dev == cn_tab->cn_dev) {
Debugger();
continue;
}
#endif
if (c & RBUF_FERR)
cc |= TTY_FE;
if (c & RBUF_PERR)
@ -1278,7 +1284,9 @@ dcPollc(dev, on)
int on;
{
#if defined(DIAGNOSTIC) || defined(DEBUG)
#ifndef DDB
printf("dc_Pollc(%d, %d): not implemented\n", minor(dev), on);
#endif
#endif
}