Add support for alternative break-to-debugger to syscons(4). While most

keyboards allow console break sequences (such as ctrl-alt-esc) to be
entered, alternative break can prove useful under virtualisation and
remote console systems where entering control sequences can be
difficult or unreliable.

MFC after:	3 weeks
Approved by:	re (bz)
This commit is contained in:
Robert Watson 2011-08-27 22:10:45 +00:00
parent 04114c5ee3
commit a608af7817
2 changed files with 7 additions and 0 deletions

View file

@ -3562,6 +3562,10 @@ next_code:
/* goto next_code */
} else {
/* regular keys (maybe MKEY is set) */
#if !defined(SC_DISABLE_KDBKEY) && defined(KDB)
if (enable_kdbkey)
kdb_alt_break(c, &sc->sc_altbrk);
#endif
if (!(sc->flags & SC_SCRN_BLANKED))
return c;
}

View file

@ -266,6 +266,9 @@ typedef struct sc_softc {
u_char cursor_char;
u_char mouse_char;
#ifdef KDB
int sc_altbrk;
#endif
} sc_softc_t;
/* virtual screen */