Qemu debugging.

Programming, for all ages and all languages.
Post Reply
Ehsanulhaq
Posts: 8
Joined: Sat Apr 10, 2010 1:59 am

Qemu debugging.

Post 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,
User avatar
Thomas
Member
Member
Posts: 281
Joined: Thu Jun 04, 2009 11:12 pm

Re: Qemu debugging.

Post 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
Post Reply