[Bug 233230] [bhyve] [patch] usage() doesn't list -G debug server option
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Oct 29 16:14:56 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233230
--- Comment #3 from John Baldwin <jhb at FreeBSD.org> ---
I think it might be useful to constrain the description of -g a bit. It only
works for guests that support the 'bvmdebug' driver (which currently only
exists for FreeBSD AFAIK), and similar to 'bmconsole' mostly existed as a
simple device model before bhyve supported UARTs. A more portable approach to
connect to a gdb stub in a guest OS now is to use a UART to do so (e.g. I wire
up /dev/nmdm<vm>2B to com2 for my guests so that gdb can connect to
/dev/nmdm<vm>2A to connect to a gdb stub on com2 in the guest which potentially
works with multiple OSes). -G is more like qemu's -g.
I'd be tempted to deprecate bvmconsole and bvmdebug, but I'd defer to Peter on
that. I realize we'd need to document -G better regardless, but if we want to
move forward with deprecating bvmdebug it might affect the language we use to
describe -g vs -G.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list