Page 1 of 1

Qemu debugging.

Posted: Mon May 03, 2010 11:53 pm
by Ehsanulhaq
Hi,
Could anyone plz tell me how can I debug the qemu source code?.What IDE should I use for the development of Qemu.I want to understand code of Qemu for user mode emulation.
Thanks,

Re: Qemu debugging.

Posted: Tue May 04, 2010 2:18 am
by Thomas
Hi ,
Add -g to the CFLAGS in the makefile . Rebuild qemu .

Code: Select all

gdb qemu  
break <function> or <line no>  -- setting break point
run   -- run to next point
step  - step into 
next  -- goto to next line
You can actually go through gdb manual for further details , One good reference I found is Indispensible PC hardware book .Hope it helps
--Thomas