Re: Remote Kernel Debugging over QEMU?

2008-03-08 Thread Andrey V. Elsukov
08.03.08, 22:45, Yoshihiro Ota [EMAIL PROTECTED]: 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

Remote Kernel Debugging over QEMU?

2008-03-08 Thread Yoshihiro Ota
Hello, folks, 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

Re: Remote Kernel Debugging over QEMU?

2008-03-08 Thread Kostik Belousov
On Sat, Mar 08, 2008 at 02:45:05PM -0500, Yoshihiro Ota wrote: Hello, folks, 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

Re: Remote Kernel Debugging over QEMU?

2008-03-08 Thread Robert Watson
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,

Re: Remote Kernel Debugging over QEMU?

2008-03-08 Thread Yoshihiro Ota
On Sat, 8 Mar 2008 22:18:32 +0200 Kostik Belousov [EMAIL PROTECTED] wrote: On Sat, Mar 08, 2008 at 02:45:05PM -0500, Yoshihiro Ota wrote: Hello, folks, 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

debugging with Qemu

2005-06-08 Thread Igor Shmukler
Hello, We have tried to use qemu for debugging of kernel-level code the same way we used bochs in past. The qemu whether with or without kqemu is quite fast for our needs. The gdb connects to guest just fine, however breakpoints break things and qemu stops working. Our guest OS is FreeBSD

Re: debugging with Qemu

2005-06-08 Thread Bakul Shah
Hmm... I've used qemu a bit to debug the kernel. Even used it to debug a loadable module. Here is what I did: # qemu -s img # cd path to where the kernel was built on the host # gdb kernel.debug (gdb) target remote localhost:1234 ... (gdb) l kldload 739 /* 740 * MPSAFE 741 */ 742

Re: [Qemu-devel] Re: debugging with Qemu

2005-06-08 Thread Bakul Shah
I am using kqemu and qemu built from May 2 snapshot if that matters. This was a stock 5.4-RELEASE complied locallly with makeoptionsDEBUG=-g added the kernel config file. The host was also running 5.4 but that should not matter. Ugh... Should've done a diff with GENERIC