[Patch] Bring back ALT_BREAK_TO_DEBUGGER functionality to vt(4)
Andre Albsmeier
andre at fbsd.ata.myota.org
Tue Dec 9 12:51:06 UTC 2014
This is what I use to bring back ALT_BREAK_TO_DEBUGGER
functionality to vt(4). The patch is against STABLE-9.3.
--- ./vt_core.c.ORI 2014-07-22 17:29:27.000000000 +0200
+++ ./vt_core.c 2014-12-08 20:51:24.000000000 +0100
@@ -517,6 +517,9 @@
}
#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);
--- ./vt.h.ORI 2014-04-07 19:06:41.000000000 +0200
+++ ./vt.h 2014-12-08 20:46:55.000000000 +0100
@@ -139,6 +139,7 @@
int vd_keyboard; /* (G) Keyboard index. */
unsigned int vd_kbstate; /* (?) Device unit. */
unsigned int vd_unit; /* (c) Device unit. */
+ int vd_altbrk; /* (?) State for alt break sequence. */
};
/*
Any comments? Something missing in order to get it committed?
-Andre
More information about the freebsd-hackers
mailing list