From owner-freebsd-current@FreeBSD.ORG Sat Jul 5 10:33:20 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 EB4B51DB for ; Sat, 5 Jul 2014 10:33:20 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C996C2BAD for ; Sat, 5 Jul 2014 10:33:20 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s65AXJts026554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Jul 2014 03:33:19 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s65AXIxV026553; Sat, 5 Jul 2014 03:33:18 -0700 (PDT) (envelope-from jmg) Date: Sat, 5 Jul 2014 03:33:18 -0700 From: John-Mark Gurney To: Peter Jeremy Subject: Re: keyboard break to debugger broken? Message-ID: <20140705103318.GF45513@funkthat.com> Mail-Followup-To: Peter Jeremy , current@freebsd.org References: <20140704092848.GZ45513@funkthat.com> <20140704112730.GI97231@server.rulingia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140704112730.GI97231@server.rulingia.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Sat, 05 Jul 2014 03:33:19 -0700 (PDT) Cc: 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 10:33:21 -0000 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=1 to enter the debugger, and the > >CTRL-ALT-PAUSE works to suspend the machine, and CTRL-ALT-DEL works > >to reboot... > > > >Does anyone know if this works? > > It works for me on 10.0. Do you have debug.kdb.break_to_debugger=1 > and hw.syscons.kbd_debug=1 (if you're using syscons)? 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... 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.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."