svn commit: r286742 - stable/10/sys/dev/vt

Ed Maste emaste at FreeBSD.org
Thu Aug 13 19:48:20 UTC 2015


Author: emaste
Date: Thu Aug 13 19:48:19 2015
New Revision: 286742
URL: https://svnweb.freebsd.org/changeset/base/286742

Log:
  MFC r276282: Support ALT_BREAK_TO_DEBUGGER in vt(4)
  
  PR:		196511

Modified:
  stable/10/sys/dev/vt/vt.h
  stable/10/sys/dev/vt/vt_core.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/vt/vt.h
==============================================================================
--- stable/10/sys/dev/vt/vt.h	Thu Aug 13 19:12:55 2015	(r286741)
+++ stable/10/sys/dev/vt/vt.h	Thu Aug 13 19:48:19 2015	(r286742)
@@ -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)

Modified: stable/10/sys/dev/vt/vt_core.c
==============================================================================
--- stable/10/sys/dev/vt/vt_core.c	Thu Aug 13 19:12:55 2015	(r286741)
+++ stable/10/sys/dev/vt/vt_core.c	Thu Aug 13 19:48:19 2015	(r286742)
@@ -852,7 +852,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);


More information about the svn-src-stable-10 mailing list