aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dcons
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2011-08-26 21:46:36 +0000
committerRobert Watson <rwatson@FreeBSD.org>2011-08-26 21:46:36 +0000
commit4cf75455890c103c9a66cb791e88998aafd4f8ce (patch)
tree2ae73feb05cbeb7e5e297fdfc6fab07cf2db82b5 /sys/dev/dcons
parent3a3ba1b069d1b0f987e739845abbc100d548139e (diff)
Notes
Diffstat (limited to 'sys/dev/dcons')
-rw-r--r--sys/dev/dcons/dcons_os.c29
1 files changed, 6 insertions, 23 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c
index 3b98cdd255f7..53ac612f6ba8 100644
--- a/sys/dev/dcons/dcons_os.c
+++ b/sys/dev/dcons/dcons_os.c
@@ -133,38 +133,21 @@ static struct ttydevsw dcons_ttydevsw = {
.tsw_outwakeup = dcons_outwakeup,
};
-#if (defined(GDB) || defined(DDB)) && defined(ALT_BREAK_TO_DEBUGGER)
+#if (defined(GDB) || defined(DDB))
static int
dcons_check_break(struct dcons_softc *dc, int c)
{
- int kdb_brk;
if (c < 0)
return (c);
- if ((kdb_brk = kdb_alt_break(c, &dc->brk_state)) != 0) {
- switch (kdb_brk) {
- case KDB_REQ_DEBUGGER:
- if ((dc->flags & DC_GDB) != 0) {
#ifdef GDB
- if (gdb_cur == &dcons_gdb_dbgport) {
- kdb_dbbe_select("gdb");
- kdb_enter(KDB_WHY_BREAK,
- "Break sequence on dcons gdb port");
- }
+ if ((dc->flags & DC_GDB) != 0 && gdb_cur == &dcons_gdb_dbgport)
+ kdb_alt_break_gdb(c, &dc->brk_state);
+ else
#endif
- } else
- kdb_enter(KDB_WHY_BREAK,
- "Break sequence on dcons console port");
- break;
- case KDB_REQ_PANIC:
- kdb_panic("Panic sequence on dcons console port");
- break;
- case KDB_REQ_REBOOT:
- kdb_reboot();
- break;
- }
- }
+ kdb_alt_break(c, &dc->brk_state);
+
return (c);
}
#else