Date: Sat, 27 Dec 2014 04:21:25 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276282 - head/sys/dev/vt Message-ID: <201412270421.sBR4LP7c032735@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Sat Dec 27 04:21:24 2014 New Revision: 276282 URL: https://svnweb.freebsd.org/changeset/base/276282 Log: Support ALT_BREAK_TO_DEBUGGER in vt(4) Submitted by: Andre Albsmeier on -hackers Modified: head/sys/dev/vt/vt.h head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt.h ============================================================================== --- head/sys/dev/vt/vt.h Sat Dec 27 03:20:34 2014 (r276281) +++ head/sys/dev/vt/vt.h Sat Dec 27 04:21:24 2014 (r276282) @@ -155,6 +155,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) Modified: head/sys/dev/vt/vt_core.c ============================================================================== --- head/sys/dev/vt/vt_core.c Sat Dec 27 03:20:34 2014 (r276281) +++ head/sys/dev/vt/vt_core.c Sat Dec 27 04:21:24 2014 (r276282) @@ -825,7 +825,9 @@ vt_processkey(keyboard_t *kbd, struct vt 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412270421.sBR4LP7c032735>