Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/dev Enter DDB on break if console.
details: https://anonhg.NetBSD.org/src/rev/04110f6cea60
branches: trunk
changeset: 521919:04110f6cea60
user: gmcgarry <gmcgarry%NetBSD.org@localhost>
date: Fri Feb 08 07:26:16 2002 +0000
description:
Enter DDB on break if console.
diffstat:
sys/arch/hp300/dev/dca.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 30e9970a941b -r 04110f6cea60 sys/arch/hp300/dev/dca.c
--- a/sys/arch/hp300/dev/dca.c Fri Feb 08 06:17:03 2002 +0000
+++ b/sys/arch/hp300/dev/dca.c Fri Feb 08 07:26:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dca.c,v 1.45 2001/12/14 08:34:27 gmcgarry Exp $ */
+/* $NetBSD: dca.c,v 1.46 2002/02/08 07:26:16 gmcgarry Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -83,6 +83,7 @@
* machines.
*/
+#include "opt_ddb.h"
#include "opt_kgdb.h"
#include <sys/param.h>
@@ -628,6 +629,12 @@
#endif
return;
}
+#ifdef DDB
+ if ((sc->sc_flags & DCA_ISCONSOLE) && (stat & LSR_BI)) {
+ Debugger();
+ return;
+ }
+#endif
if (stat & (LSR_BI | LSR_FE))
c |= TTY_FE;
else if (stat & LSR_PE)
Home |
Main Index |
Thread Index |
Old Index