From 3080596e7fe641c1bcb1a398bfe669d1b69d7fe4 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Mon, 28 May 2007 02:20:40 +0000 Subject: [PATCH] We should better ignore a break on gdb port if gdb is not enabled. --- sys/dev/dcons/dcons_os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c index 4048466427c9..935bf40ceead 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