From 787dd8e0e37822023e048f747a6e5e87049c2de1 Mon Sep 17 00:00:00 2001 From: gmcgarry Date: Fri, 8 Feb 2002 07:26:16 +0000 Subject: [PATCH] Enter DDB on break if console. --- sys/arch/hp300/dev/dca.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/arch/hp300/dev/dca.c b/sys/arch/hp300/dev/dca.c index 99964a404093..a0b4b81f409f 100644 --- a/sys/arch/hp300/dev/dca.c +++ b/sys/arch/hp300/dev/dca.c @@ -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 @@ -628,6 +629,12 @@ dcaeint(sc, stat) #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)