qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to debug qemu-ga.exe (step by step) in windows ?
@ 2014-04-01 12:47 Gonglei (Arei)
  2014-04-01 15:06 ` Michael Roth
  0 siblings, 1 reply; 2+ messages in thread
From: Gonglei (Arei) @ 2014-04-01 12:47 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: mdroth@linux.vnet.ibm.com

Hi,

    I'm learning qemu ga from wiki  http://wiki.qemu.org/Features/QAPI/GuestAgent
    qemu-ga.exe is running in my windows VM now, and I want to debug it step by step.
    Could anyone specify how to debug in windows ?  Thanks.



Best regards,
-Gonglei

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] How to debug qemu-ga.exe (step by step) in windows ?
  2014-04-01 12:47 [Qemu-devel] How to debug qemu-ga.exe (step by step) in windows ? Gonglei (Arei)
@ 2014-04-01 15:06 ` Michael Roth
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Roth @ 2014-04-01 15:06 UTC (permalink / raw)
  To: Gonglei (Arei), qemu-devel@nongnu.org

Quoting Gonglei (Arei) (2014-04-01 07:47:42)
> Hi,
> 
>     I'm learning qemu ga from wiki  http://wiki.qemu.org/Features/QAPI/GuestAgent
>     qemu-ga.exe is running in my windows VM now, and I want to debug it step by step.
>     Could anyone specify how to debug in windows ?  Thanks.

There's WinDbg, which is fairly well documented. I've used it from time to
time, but only for very basic things like getting the stacktrace from a crash.

Beyond that I've gotten by mostly by sticking g_print/g_warning() statements
everywhere until I track down whatever problem I'm looking for.

Theoretically, with the win32 serial port support recently added, you can
rebuild and test using this approach purely in a linux VM (with mingw
cross-build environment) via WINE by handing WINE the qemu-emulated serial
port... was going to suggest this approach but unfortunately, in FC18 at least,
there seems to be some issue with COM ports in WINE where the input to qemu-ga
just gets echoed back to the user/host rather than actually getting passed
through to qemu-ga..., but maybe it'll work for you/others.

That's the only real general advice I can offer, but maybe with more details
of what you're looking into I can be of more assistance.

> 
> 
> 
> Best regards,
> -Gonglei

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-01 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 12:47 [Qemu-devel] How to debug qemu-ga.exe (step by step) in windows ? Gonglei (Arei)
2014-04-01 15:06 ` Michael Roth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).