summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2007-06-11 04:08:50 +0000
committersimokawa <simokawa@FreeBSD.org>2007-06-11 04:08:50 +0000
commit1f5ee5cc4f4a98060ee7b74f237169570dcda597 (patch)
treec4931e7cbd6150c8eefcaeb31a3ddd490a86f195
parent65288aec3302bb4eed13efa141f1da570002425e (diff)
downloadFreeBSD-src-1f5ee5cc4f4a98060ee7b74f237169570dcda597.zip
FreeBSD-src-1f5ee5cc4f4a98060ee7b74f237169570dcda597.tar.gz
- Don't force to be the GDB port since dcons(4) is in GENERIC now.
To enable the GDB port of dcons(4), you need to put dcons_gdb=1 in /boot/loader.conf.
-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