From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 9 12:51:06 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0C3F5147 for ; Tue, 9 Dec 2014 12:51:06 +0000 (UTC) Received: from mail.myota.org (mail.myota.org [85.10.206.105]) by mx1.freebsd.org (Postfix) with ESMTP id 91704ED2 for ; Tue, 9 Dec 2014 12:51:05 +0000 (UTC) Received: from mobile.client (144.93.167.190.d.dyn.codetel.net.do [190.167.93.144] (may be forged)) (authenticated bits=128) by mail.myota.org (8.14.9/8.14.9) with ESMTP id sB9ComAc048832 for ; Tue, 9 Dec 2014 13:50:52 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: from submit.client ([127.0.0.1]) by schlappy.local (8.14.9/8.14.9) with ESMTP id sB9CoTE6001634; Tue, 9 Dec 2014 13:50:30 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: (from user@localhost) by schlappy.local (8.14.9/8.14.9/Submit) id sB9CoTPd001633; Tue, 9 Dec 2014 13:50:29 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Date: Tue, 9 Dec 2014 13:50:29 +0100 From: Andre Albsmeier To: freebsd-hackers@freebsd.org Subject: [Patch] Bring back ALT_BREAK_TO_DEBUGGER functionality to vt(4) Message-ID: <20141209125029.GA1568@schlappy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Echelon: Ortega, Secret, Compsec, 767, BND X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Not delayed on 85.10.206.105, ACL: AUTH(59), Origin: DO, OS: FreeBSD 9.x X-Virus-Scanned: clamav-milter 0.98.5 at colo X-Virus-Status: Clean X-Mailman-Approved-At: Tue, 09 Dec 2014 13:31:54 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 12:51:06 -0000 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