[Qemu-devel] Re: debugging with Qemu

Bakul Shah bakul at BitBlocks.com
Wed Jun 8 19:45:01 GMT 2005


> 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.

Ugh...  Should've done a diff with GENERIC since the
options are needed for debugging:

--- /sys/i386/conf/GENERIC	Tue Apr 12 12:50:23 2005
+++ /sys/i386/conf/DUMBLEDORE	Mon May  9 17:51:10 2005
@@ -58,6 +58,12 @@
 					# output.  Adds ~215k to driver.
 options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.
 
+options		KDB
+options		DDB
+options		GDB
+makeoptions    DEBUG=-g                #Build kernel with gdb(1) debug symbols
+
+
 device		apic			# I/O APIC
 
 # Bus support.  Do not remove isa, even if you have no isa slots


More information about the freebsd-hackers mailing list