From owner-freebsd-virtualization@FreeBSD.ORG Tue Dec 17 02:09:08 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D5E0BFCE for ; Tue, 17 Dec 2013 02:09:08 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 928DE1901 for ; Tue, 17 Dec 2013 02:09:08 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id B39EC11E4C; Tue, 17 Dec 2013 12:09:06 +1000 (EST) Received: from Peters-MacBook-Pro.local (c-67-161-27-37.hsd1.ca.comcast.net [67.161.27.37]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BQT54636 (AUTH peterg@ptree32.com.au); Tue, 17 Dec 2013 12:09:05 +1000 Message-ID: <52AFB23C.9000802@freebsd.org> Date: Mon, 16 Dec 2013 18:09:00 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Neel Natu Subject: Re: break to debugger in bhyve References: <52AE52DD.6020500@freebsd.org> <03322001-03C7-491F-B97D-64EA2E89BF6C@tidalscale.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2013 02:09:08 -0000 > Works fine for me once I compile with the ALT_BREAK_TO_DEBUGGER config option. Also works without that, but the sysctl (or tunable) has to be set: root@bhyve-b1:~ # sysctl debug.kdb.alt_break_to_debugger=1 debug.kdb.alt_break_to_debugger: 0 -> 1 (issued the 3-char sequence CR ~ ctl-b) root@bhyve-b1:~ # KDB: enter: Break to debugger [ thread pid 11 tid 100003 ] Stopped at kdb_alt_break_internal+0x17f: movq $0,kdb_why db> later, Peter.