diff options
author | simokawa <simokawa@FreeBSD.org> | 2007-06-11 04:08:50 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2007-06-11 04:08:50 +0000 |
commit | 1f5ee5cc4f4a98060ee7b74f237169570dcda597 (patch) | |
tree | c4931e7cbd6150c8eefcaeb31a3ddd490a86f195 | |
parent | 65288aec3302bb4eed13efa141f1da570002425e (diff) | |
download | FreeBSD-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.c | 6 |
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 |