summaryrefslogtreecommitdiffstats
path: root/sys/dev/vt
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-08-13 19:48:19 +0000
committeremaste <emaste@FreeBSD.org>2015-08-13 19:48:19 +0000
commit8021b618268b0557fb4604b19fce6df74b5017ce (patch)
treef3e2486331b35f0239fd5d64199890c39527a8a3 /sys/dev/vt
parented48261da8b04b96a479b7e174ca9554eeecd082 (diff)
downloadFreeBSD-src-8021b618268b0557fb4604b19fce6df74b5017ce.zip
FreeBSD-src-8021b618268b0557fb4604b19fce6df74b5017ce.tar.gz
MFC r276282: Support ALT_BREAK_TO_DEBUGGER in vt(4)
PR: 196511
Diffstat (limited to 'sys/dev/vt')
-rw-r--r--sys/dev/vt/vt.h1
-rw-r--r--sys/dev/vt/vt_core.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h
index 05ae3e2..31211c8 100644
--- a/sys/dev/vt/vt.h
+++ b/sys/dev/vt/vt.h
@@ -154,6 +154,7 @@ struct vt_device {
int vd_keyboard; /* (G) Keyboard index. */
unsigned int vd_kbstate; /* (?) Device unit. */
unsigned int vd_unit; /* (c) Device unit. */
+ int vd_altbrk; /* (?) Alt break seq. state */
};
#define VD_PASTEBUF(vd) ((vd)->vd_pastebuf.vpb_buf)
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index eee7777..3ed36b3 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -852,7 +852,9 @@ vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c)
terminal_input_char(vw->vw_terminal, 0x1b);
}
#endif
-
+#if defined(KDB)
+ kdb_alt_break(c, &vd->vd_altbrk);
+#endif
terminal_input_char(vw->vw_terminal, KEYCHAR(c));
} else
terminal_input_raw(vw->vw_terminal, c);
OpenPOWER on IntegriCloud