From 749a99134b32f7a69f5dcdac0893587294d84a33 Mon Sep 17 00:00:00 2001 From: fredette Date: Tue, 26 Mar 2002 23:17:09 +0000 Subject: [PATCH] When DDB is not defined but Debugger() is anyways, define console_debugger() to be Debugger(). This is relevant on the sun2 and sun3, where a monitor is always available. --- sys/sys/systm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 3c83506d4a44..e8af85cbf089 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -1,4 +1,4 @@ -/* $NetBSD: systm.h,v 1.142 2002/03/17 22:19:22 christos Exp $ */ +/* $NetBSD: systm.h,v 1.143 2002/03/26 23:17:09 fredette Exp $ */ /*- * Copyright (c) 1982, 1988, 1991, 1993 @@ -396,6 +396,8 @@ void cpu_Debugger __P((void)); */ extern int db_fromconsole; /* XXX ddb/ddbvar.h */ #define console_debugger() if (db_fromconsole) Debugger() +#elif defined(Debugger) +#define console_debugger() Debugger() #else #define console_debugger() do {} while (/* CONSTCOND */ 0) /* NOP */ #endif