summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/dcons/dcons_os.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c
index fa6bcd0..63f2522 100644
--- a/sys/dev/dcons/dcons_os.c
+++ b/sys/dev/dcons/dcons_os.c
@@ -721,7 +721,11 @@ dcons_modevent(module_t mode, int type, void *data)
static int
dcons_dbg_probe(void)
{
- return(DCONS_FORCE_GDB);
+ int dcons_gdb;
+
+ if (getenv_int("dcons_gdb", &dcons_gdb) == 0)
+ return (-1);
+ return (dcons_gdb);
}
static void
OpenPOWER on IntegriCloud