From owner-freebsd-virtualization@FreeBSD.ORG Tue Dec 17 01:03:55 2013 Return-Path: Delivered-To: freebsd-virtualization@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 70E173DB; Tue, 17 Dec 2013 01:03:55 +0000 (UTC) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1D01E1361; Tue, 17 Dec 2013 01:03:55 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id x13so4422059qcv.29 for ; Mon, 16 Dec 2013 17:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=i5VIQCr4tWlcG0bQWycqCG0HrtT3inK8ADhU330zGPE=; b=pwFQtan3i6Zx/JK2GnbJrqk0gF/dqz6uRDfwsnh2Kk2WM8h2Ukf90Itl/ftlD2JxM1 eoyTrXj4gG48nms5g7zRoMvKhsj9gppSBUScJIvwFWJ/WyO1vTfDBgkOKrSVBbRAlLpo YaLvWuRABcxmT38+BRaTVHOvxmjvm0/un1et2ZtqT2bAfLL55QN2XwaMarLkgi55RBI8 0uNs1SXvO29yg0tE4rTYaKsYPLRBekq0zTOUCoCdVj6uQs/4tpSj6PYOEr46ODxogVTw 1ntkf9QAvdozs/774hR1B02i74RISsXSa9/KCf37G3Ceambuz3OUCV2TyJu+ufro6xvp 6xEw== MIME-Version: 1.0 X-Received: by 10.49.27.234 with SMTP id w10mr38015147qeg.22.1387242234350; Mon, 16 Dec 2013 17:03:54 -0800 (PST) Received: by 10.140.34.17 with HTTP; Mon, 16 Dec 2013 17:03:54 -0800 (PST) In-Reply-To: <03322001-03C7-491F-B97D-64EA2E89BF6C@tidalscale.com> References: <52AE52DD.6020500@freebsd.org> <03322001-03C7-491F-B97D-64EA2E89BF6C@tidalscale.com> Date: Mon, 16 Dec 2013 17:03:54 -0800 Message-ID: Subject: Re: break to debugger in bhyve From: Neel Natu To: Michael Berman Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 01:03:55 -0000 Hi Michael, On Sun, Dec 15, 2013 at 9:00 PM, Michael Berman wrote: > > Unfortunately, this does not seem to work with the bhyve /dev/console dev= ice. > Works fine for me once I compile with the ALT_BREAK_TO_DEBUGGER config opti= on. root@b2:~ # sysctl -a kern.conftxt | grep ALT_BREAK_TO_DEBUGGER options ALT_BREAK_TO_DEBUGGER root@b2:~ # root@b2:~ # KDB: enter: Break to debugger [ thread pid 11 tid 100003 ] Stopped at kdb_alt_break_internal+0x17f: movq $0,kdb_why db> best Neel > Sent from my iPhone > >> On Dec 15, 2013, at 5:10 PM, "Julian Elischer" wrot= e: >> >>> On 12/16/13, 8:27 AM, Michael Berman wrote: >>> I=92ve tried the various kernel and sysctl options, and it may be the w= ay I am starting bhyve but I can=92t seem to get a the FreeBSD guest to ent= er the kernel debugger with a hotkey. >> it depends of course on which 'console' you are using,, for serial cons= ole with /dev/nmdm you can use the ALT_BREAK_TO_DEBUGGER >> option so that {enter| {~} {^B} will drop you into the debugger. >> When I was doing this last I had the console on the first serial port an= d the debugger on the second. >> (that's why I wrote the nmdm node.) >>> >>> Michael >>> >>> _______________________________________________ >>> freebsd-virtualization@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >>> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@fr= eebsd.org" >> > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@free= bsd.org"