From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV0Gg-00011E-Ff for qemu-devel@nongnu.org; Tue, 01 Apr 2014 11:06:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV0GY-0007bO-QY for qemu-devel@nongnu.org; Tue, 01 Apr 2014 11:06:26 -0400 Received: from e7.ny.us.ibm.com ([32.97.182.137]:54953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV0GY-0007bJ-MC for qemu-devel@nongnu.org; Tue, 01 Apr 2014 11:06:18 -0400 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 1 Apr 2014 11:06:18 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 0E9076E8045 for ; Tue, 1 Apr 2014 11:06:11 -0400 (EDT) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by b01cxnp23032.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s31F6HIv66781220 for ; Tue, 1 Apr 2014 15:06:17 GMT Received: from d01av05.pok.ibm.com (localhost [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s31F6G4E003843 for ; Tue, 1 Apr 2014 11:06:16 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth References: <33183CC9F5247A488A2544077AF19020815DC917@SZXEMA503-MBS.china.huawei.com> In-Reply-To: <33183CC9F5247A488A2544077AF19020815DC917@SZXEMA503-MBS.china.huawei.com> Message-ID: <20140401150616.22831.67995@loki> Date: Tue, 01 Apr 2014 10:06:16 -0500 Subject: Re: [Qemu-devel] How to debug qemu-ga.exe (step by step) in windows ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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/Gu= estAgent > qemu-ga.exe is running in my windows VM now, and I want to debug it s= tep 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 cra= sh. 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 le= ast, 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