Date: Mon, 16 Dec 2013 17:03:54 -0800 From: Neel Natu <neelnatu@gmail.com> To: Michael Berman <michael.berman@tidalscale.com> Cc: "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: break to debugger in bhyve Message-ID: <CAFgRE9G6eofjPhx-2tNcabj9H83uO7A57bF7zoKiXH6igYJ1qQ@mail.gmail.com> In-Reply-To: <03322001-03C7-491F-B97D-64EA2E89BF6C@tidalscale.com> References: <CED388F2.1AA90%michael.berman@tidalscale.com> <52AE52DD.6020500@freebsd.org> <03322001-03C7-491F-B97D-64EA2E89BF6C@tidalscale.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Michael, On Sun, Dec 15, 2013 at 9:00 PM, Michael Berman <michael.berman@tidalscale.com> 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" <julian@freebsd.org> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9G6eofjPhx-2tNcabj9H83uO7A57bF7zoKiXH6igYJ1qQ>