Skip to contentSkip to conversation

problem with debuging /tools/ioemu-qemu-xen/xen-vl-extra.c

help ¤終於aware 2 participants 2 messages Dec 31, 2011 – Jan 1, 2012

lore
Share & tools
lore
#0 lore raw

Hi everyone,
I added debug info in the function do_savevm of /tools/ioemu-qemu-xen/xen-vl-extra.c as follow:

DBG("going to save...");
ret = qemu_savevm_state(f);
DBG("save finish...");

only to see "going to save..." and "save finish..." in the log file,but I couldn't get the debug output in qemu_savevm_state(f) called by "do_savevm". Why not?

best regards
bruce

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 11 lines · ¤?K於aware

Hi everyone,
I added debug info in the function
do_savevm of /tools/ioemu-qemu-xen/xen-vl-extra.c as follow:

DBG("going to
save...");
ret =
qemu_savevm_state(f);
DBG("save finish...");

Quoted 4 lines

only to see "going to save..." and "save finish..." in the log file,but I couldn't get the debug output in qemu_savevm_state(f) called by "do_savevm". Why not?

What are you expecting to see? If you want to see debug output for qemu_savevm_state(), you should add some code to do that.

I don't find any DBG() definition in ioemu directory. I guess DBG() is your customized wrapper around printf(), so it prints whatever you tell it to print, right?

Another suggestion for your debugging is that you can use gdb to connect to qemu -- it is just a userspace program.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel