From bakul@BitBlocks.com Wed Jun 8 22:55:39 2005 Date: Wed, 08 Jun 2005 11:55:07 -0700 From: Bakul Shah To: Igor Shmukler Cc: hackers@freebsd.org, qemu-devel@nongnu.org Subject: Re: debugging with Qemu 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 # gdb kernel.debug (gdb) target remote localhost:1234 ... (gdb) l kldload 739 /* 740 * MPSAFE 741 */ 742 int 743 kldload(struct thread *td, struct kldload_args *uap) 744 { 745 char *kldname, *modname; 746 char *pathname = NULL; 747 linker_file_t lf; 748 int error = 0; (gdb) b 743 (gdb) c Continuing. Breakpoint 3, kldload (td=0xc1419c00, uap=0xc8105d14) at /usr/src/sys/kern/kern_linker.c:744 744 { (gdb) c Continuing. ... ^C Program received signal 0, Signal 0. cpu_idle_default () at /usr/src/sys/i386/i386/machdep.c:1113 1113 } (gdb) detach Ending remote debugging. (gdb) q I am using kqemu and qemu built from May 2 snapshot if that matters. This was a stock 5.4-RELEASE complied locallly with makeoptions DEBUG=-g added the kernel config file. The host was also running 5.4 but that should not matter. May be if you describe the exact symptoms.... _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Offtopic - but am I the only person who has modified the if_tap driver > to permit opening by non-superuser? Did you modify if_tap driver? I didn't, I set follwoing setting. 1. Add following lines to /etc/devfs.conf # Allow a user in the wheel group to query the # if_tap device perm tap* 0660 2. Add following line to /etc/sysctl.conf net.link.tap.user_open=1