Bhyve gdb server for system debugging

Rebecca Cran rebecca at bsdio.com
Sat Mar 14 04:36:17 UTC 2020


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)


More information about the freebsd-virtualization mailing list