Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2011 22:10:45 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r225221 - head/sys/dev/syscons
Message-ID:  <201108272210.p7RMAjlZ022897@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Sat Aug 27 22:10:45 2011
New Revision: 225221
URL: http://svn.freebsd.org/changeset/base/225221

Log:
  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)

Modified:
  head/sys/dev/syscons/syscons.c
  head/sys/dev/syscons/syscons.h

Modified: head/sys/dev/syscons/syscons.c
==============================================================================
--- head/sys/dev/syscons/syscons.c	Sat Aug 27 22:08:01 2011	(r225220)
+++ head/sys/dev/syscons/syscons.c	Sat Aug 27 22:10:45 2011	(r225221)
@@ -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;
 	}

Modified: head/sys/dev/syscons/syscons.h
==============================================================================
--- head/sys/dev/syscons/syscons.h	Sat Aug 27 22:08:01 2011	(r225220)
+++ head/sys/dev/syscons/syscons.h	Sat Aug 27 22:10:45 2011	(r225221)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108272210.p7RMAjlZ022897>