svn commit: r286743 - stable/9/sys/dev/vt

Ed Maste emaste at FreeBSD.org
Thu Aug 13 19:51:23 UTC 2015


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

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

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

Modified: stable/9/sys/dev/vt/vt.h
==============================================================================
--- stable/9/sys/dev/vt/vt.h	Thu Aug 13 19:48:19 2015	(r286742)
+++ stable/9/sys/dev/vt/vt.h	Thu Aug 13 19:51:21 2015	(r286743)
@@ -139,6 +139,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 */
 };
 
 /*

Modified: stable/9/sys/dev/vt/vt_core.c
==============================================================================
--- stable/9/sys/dev/vt/vt_core.c	Thu Aug 13 19:48:19 2015	(r286742)
+++ stable/9/sys/dev/vt/vt_core.c	Thu Aug 13 19:51:21 2015	(r286743)
@@ -516,7 +516,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-9 mailing list