diff options
author | simokawa <simokawa@FreeBSD.org> | 2007-05-28 02:20:40 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2007-05-28 02:20:40 +0000 |
commit | de252c37833f86920ffa4757e71501387ed8cf34 (patch) | |
tree | f1cba1f1f6e69b74feab312dd844c09f279882cf /sys/dev/dcons/dcons_os.c | |
parent | ee9e45ce7d8aac104ce706cb2dde3e8a240df14a (diff) | |
download | FreeBSD-src-de252c37833f86920ffa4757e71501387ed8cf34.zip FreeBSD-src-de252c37833f86920ffa4757e71501387ed8cf34.tar.gz |
We should better ignore a break on gdb port if gdb is not enabled.
Diffstat (limited to 'sys/dev/dcons/dcons_os.c')
-rw-r--r-- | sys/dev/dcons/dcons_os.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c index 4048466..935bf40 100644 --- a/sys/dev/dcons/dcons_os.c +++ b/sys/dev/dcons/dcons_os.c @@ -203,14 +203,14 @@ dcons_check_break(struct dcons_softc *dc, int c) #if __FreeBSD_version >= 502122 if (kdb_alt_break(c, &dc->brk_state)) { -#ifdef GDB if ((dc->flags & DC_GDB) != 0) { +#ifdef GDB if (gdb_cur == &dcons_gdb_dbgport) { kdb_dbbe_select("gdb"); breakpoint(); } - } else #endif + } else breakpoint(); } #else |