Date: Fri, 13 Mar 2020 22:36:12 -0600 From: Rebecca Cran <rebecca@bsdio.com> To: freebsd-virtualization@freebsd.org Subject: Bhyve gdb server for system debugging Message-ID: <c6841df4-6118-f294-71fe-efd2f28d0cce@bsdio.com>
next in thread | raw e-mail | index | archive | help
I know Bhyve supports kgdb debugging of a FreeBSD guest, but I've been looking for a system-level debugging capability to let me debug the system before FreeBSD boots. However, I'm having problems with the -G option to bhyve (e.g. -G 1234): gdb shows "(bad)" in the assembly listing, reports not being able to access memory in some stack frames, and ended up crashing after a while. e.g.: set architecture i386:x86-64:intel target remote localhost:1234 >0xfffcd3e1 (bad) │ │ 0xfffcd3e2 (bad) │ │ 0xfffcd3e3 (bad) │ │ 0xfffcd3e4 (bad) │ │ 0xfffcd3e5 (bad) Should this work? -- Rebecca Cran (null)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c6841df4-6118-f294-71fe-efd2f28d0cce>