Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2014 13:50:29 +0100
From:      Andre Albsmeier <andre@fbsd.ata.myota.org>
To:        freebsd-hackers@freebsd.org
Subject:   [Patch] Bring back ALT_BREAK_TO_DEBUGGER functionality to vt(4)
Message-ID:  <20141209125029.GA1568@schlappy>

next in thread | raw e-mail | index | archive | help
This is what I use to bring back ALT_BREAK_TO_DEBUGGER
functionality to vt(4). The patch is against STABLE-9.3.

--- ./vt_core.c.ORI	2014-07-22 17:29:27.000000000 +0200
+++ ./vt_core.c	2014-12-08 20:51:24.000000000 +0100
@@ -517,6 +517,9 @@
 			}
 #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);
--- ./vt.h.ORI	2014-04-07 19:06:41.000000000 +0200
+++ ./vt.h	2014-12-08 20:46:55.000000000 +0100
@@ -139,6 +139,7 @@
 	int			 vd_keyboard;	/* (G) Keyboard index. */
 	unsigned int		 vd_kbstate;	/* (?) Device unit. */
 	unsigned int		 vd_unit;	/* (c) Device unit. */
+	int			 vd_altbrk;	/* (?) State for alt break sequence. */
 };
 
 /*


Any comments? Something missing in order to get it committed?

	-Andre



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