break to debugger in bhyve
Michael Berman
michael.berman at tidalscale.com
Tue Dec 17 02:06:48 UTC 2013
Yes, thank you. I had this in my sysctl.conf.
It seems that my problem was in use of ssh in my environment.
³~~^B² finally did the trick.
I¹ve also moved it to boot/loader.conf as this sets it a little earlier in
the boot sequence.
It is still unreliable for me, but it may be my environent.
On 12/16/13, 5:03 PM, "Neel Natu" <neelnatu at gmail.com> wrote:
>Hi Michael,
>
>On Sun, Dec 15, 2013 at 9:00 PM, Michael Berman
><michael.berman at tidalscale.com> wrote:
>>
>> Unfortunately, this does not seem to work with the bhyve /dev/console
>>device.
>>
>
>Works fine for me once I compile with the ALT_BREAK_TO_DEBUGGER config
>option.
>
>root at b2:~ # sysctl -a kern.conftxt | grep ALT_BREAK_TO_DEBUGGER
>options ALT_BREAK_TO_DEBUGGER
>root at b2:~ #
>root at 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 at freebsd.org>
>>>wrote:
>>>
>>>> On 12/16/13, 8:27 AM, Michael Berman wrote:
>>>> I¹ve tried the various kernel and sysctl options, and it may be the
>>>>way I am starting bhyve but I can¹t seem to get a the FreeBSD guest to
>>>>enter the kernel debugger with a hotkey.
>>> it depends of course on which 'console' you are using,, for serial
>>>console 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
>>>and the debugger on the second.
>>> (that's why I wrote the nmdm node.)
>>>>
>>>> Michael
>>>>
>>>> _______________________________________________
>>>> freebsd-virtualization at freebsd.org mailing list
>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>>>> To unsubscribe, send any mail to
>>>>"freebsd-virtualization-unsubscribe at freebsd.org"
>>>
>> _______________________________________________
>> freebsd-virtualization at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> To unsubscribe, send any mail to
>>"freebsd-virtualization-unsubscribe at freebsd.org"
More information about the freebsd-virtualization
mailing list