Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105923664
D27109.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
938 B
Referenced Files
None
Subscribers
None
D27109.diff
View Options
Index: head/sys/dev/vt/vt_core.c
===================================================================
--- head/sys/dev/vt/vt_core.c
+++ head/sys/dev/vt/vt_core.c
@@ -725,13 +725,22 @@
}
static int
-vt_machine_kbdevent(int c)
+vt_machine_kbdevent(struct vt_device *vd, int c)
{
switch (c) {
case SPCLKEY | DBG: /* kbdmap(5) keyword `debug`. */
- if (vt_kbd_debug)
+ if (vt_kbd_debug) {
kdb_enter(KDB_WHY_BREAK, "manual escape to debugger");
+#if VT_ALT_TO_ESC_HACK
+ /*
+ * There's an unfortunate conflict between SPCLKEY|DBG
+ * and VT_ALT_TO_ESC_HACK. Just assume they didn't mean
+ * it if we got to here.
+ */
+ vd->vd_kbstate &= ~ALKED;
+#endif
+ }
return (1);
case SPCLKEY | HALT: /* kbdmap(5) keyword `halt`. */
if (vt_kbd_halt)
@@ -864,7 +873,7 @@
return (0);
#endif
- if (vt_machine_kbdevent(c))
+ if (vt_machine_kbdevent(vd, c))
return (0);
if (vw->vw_flags & VWF_SCROLL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 5:46 PM (13 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15572803
Default Alt Text
D27109.diff (938 B)
Attached To
Mode
D27109: vt: resolve conflict between VT_ALT_TO_ESC_HACK and DBG
Attached
Detach File
Event Timeline
Log In to Comment