Date: Wed, 15 Nov 2023 07:57:35 -0800 From: John Baldwin <jhb@FreeBSD.org> To: Bakul Shah <bakul@iitbombay.org>, FreeBSD CURRENT <freebsd-current@freebsd.org> Cc: virtualization@freebsd.org Subject: Re: bhyve -G <port> Message-ID: <f58b372e-fbad-4cf2-bba7-083980719a0c@FreeBSD.org> In-Reply-To: <BD514383-3EE1-495D-818F-15C982994530@iitbombay.org> References: <BD514383-3EE1-495D-818F-15C982994530@iitbombay.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/9/23 5:21 PM, Bakul Shah wrote: > Any hints on how to use bhyve's -G <port> option to debug a VM > kernel? I can connect to it from gdb with "target remote :<port>" > & bhyve stops the VM initially but beyond that I am not sure. > Ideally this should work just like an in-circuit-emulator, not > requiring anything special in the VM or kernel itself. step only works on Intel CPUs currently (and is a bit fragile anyway due to interrupts firing while you try to step, but that happens for me in QEMU as well). Breakpoints should work fine. I tend to use 'until' to do stepping (basically stepping via temporary breakpoints) when debugging the kernel this way. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f58b372e-fbad-4cf2-bba7-083980719a0c>