From owner-freebsd-current@FreeBSD.ORG Sat Jul 5 12:40:41 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8CBB1CD7 for ; Sat, 5 Jul 2014 12:40:41 +0000 (UTC) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F5C025A9 for ; Sat, 5 Jul 2014 12:40:40 +0000 (UTC) Received: from latte.bs.cs.huji.ac.il ([132.65.179.20] helo=mbpro2.bs.cs.huji.ac.il) by kabab.cs.huji.ac.il with esmtp id 1X3P37-000ORX-OY; Sat, 05 Jul 2014 15:26:37 +0300 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: keyboard break to debugger broken? From: Daniel Braniss In-Reply-To: <20140705103318.GF45513@funkthat.com> Date: Sat, 5 Jul 2014 15:31:08 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <31D3DBF7-6B3F-4115-92EA-B3A5C8A8A2A8@cs.huji.ac.il> References: <20140704092848.GZ45513@funkthat.com> <20140704112730.GI97231@server.rulingia.com> <20140705103318.GF45513@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.1878.6) Cc: Peter Jeremy , current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2014 12:40:41 -0000 On Jul 5, 2014, at 1:33 PM, John-Mark Gurney wrote: > Peter Jeremy wrote this message on Fri, Jul 04, 2014 at 21:27 +1000: >> On 2014-Jul-04 02:28:48 -0700, John-Mark Gurney = wrote: >>> So, I recently tried to break into the debugger w/ the various key >>> sequences that I know about, and none of them worked... I've tried >>> CTRL-ESC, ALT-ESC, CTRL-ALT-ESC, CTRL-PRTSCR, ALT-PRTSCR and >>> CTRL-ALT-PRTSCR, and many other different ones... I've verified = that >>> I can sysctl debug.kdb.enter=3D1 to enter the debugger, and the >>> CTRL-ALT-PAUSE works to suspend the machine, and CTRL-ALT-DEL works >>> to reboot... >>>=20 >>> Does anyone know if this works? >>=20 >> It works for me on 10.0. Do you have debug.kdb.break_to_debugger=3D1 >> and hw.syscons.kbd_debug=3D1 (if you're using syscons)? >=20 > Turns out I didn't... and you didn't need to... emaste helped me > the other night discover this.. Apparently rwatson changed this and > the docs never got updated... I saw BREAK_TO_DEBUGGER, bug it was > documented as being *serial* only, not syscons... >=20 > I've updated NOTES and added an entry for defaults/loader.conf, but > more docs need to be updated that BREAK_TO_DEBUGGER or the tunable > or sysctl needs to be set before if works.. >=20 I don=92t know about 10/11 but 9.3 (and probably late 9.2) introduced = console_port which silently overrides the hint.uart.n.flags=3D0x10 to set which = serial port is the =91console=92, in my case I have several platforms (mainly sunfire=92s= from sun) that only have uart1 available. somehow, i have the feeling that getting the serial console (needed to = run serial-over-lab) to work is getting more in the region of magic than technology. please, some of us really need the serial console to work so that we can = rescue servers when all else fails. thanks, danny > --=20 > John-Mark Gurney Voice: +1 415 225 5579 >=20 > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"