Date: Sat, 8 Mar 2008 22:32:32 +0000 (GMT) From: Robert Watson <rwatson@FreeBSD.org> To: Yoshihiro Ota <ota@j.email.ne.jp> Cc: freebsd-hackers@freebsd.org Subject: Re: Remote Kernel Debugging over QEMU? Message-ID: <20080308223118.E11432@fledge.watson.org> In-Reply-To: <20080308144505.9c72e484.ota@j.email.ne.jp> References: <20080308144505.9c72e484.ota@j.email.ne.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 8 Mar 2008, Yoshihiro Ota wrote: > Has anyone tried to remote-debugging of a system running on Qemu? > > I thought if I could attach kgdb from Qemu host to a guest FreeBSD running > on Qemu, it would be very helpful for many reasons, i.e. no hardware > requirements, avoid fscking all disks, and so on. > > Has anyone ever attempted? I spent a half day but due to lack of remote > debugging experience and some other knowledge, it wasn't successful. I don't use Qemu, but if it has an option to expose a host serial port as a guest serial port and FreeBSD works with the guest serial port emulation, you might take a look at nmdm(4), which creates two ttys set up as a "null modem". You can then attach kgdb to one end, and qemu to the other, which is a tricky used by our VMware users to do much the same thing. Robert N M Watson Computer Laboratory University of Cambridge
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080308223118.E11432>