diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-02 21:44:53 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-02 21:44:53 +0000 |
commit | de6ef642291f1509f690956bd6424b6739b0fd03 (patch) | |
tree | 00868dfc6f63432b58a991d783a9b7b47240fdf9 /sys/arch | |
parent | 4acf60b48656d7576999553445ba82d77e3870ac (diff) |
Check db_console before entering ddb.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/vax/vax/db_machdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/db_machdep.c b/sys/arch/vax/vax/db_machdep.c index cbbf7da741b..c1e1117a9ed 100644 --- a/sys/arch/vax/vax/db_machdep.c +++ b/sys/arch/vax/vax/db_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.c,v 1.14 2005/11/24 04:55:49 brad Exp $ */ +/* $OpenBSD: db_machdep.c,v 1.15 2006/01/02 21:44:52 miod Exp $ */ /* $NetBSD: db_machdep.c,v 1.17 1999/06/20 00:58:23 ragge Exp $ */ /* @@ -59,6 +59,7 @@ #include <ddb/db_extern.h> #include <ddb/db_access.h> #include <ddb/db_interface.h> +#include <ddb/db_var.h> #include <ddb/db_variables.h> extern label_t *db_recover; @@ -507,7 +508,8 @@ kdbrint(tkn) { if (ddbescape && ((tkn & 0x7f) == 'D')) { - mtpr(0xf, PR_SIRR); + if (db_console) + mtpr(0xf, PR_SIRR); ddbescape = 0; return 1; } |