From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vadim Rozenfeld Subject: Re: Using KVM for Windows kernel debugging Date: Tue, 18 Aug 2009 17:28:40 +0300 Message-ID: <4A8ABA98.1040500@redhat.com> References: <2facd6dc0908170811p367f0e6ds7616375c2f219591@mail.gmail.com> <2facd6dc0908170816v6348c81cs68332b87686927b8@mail.gmail.com> <003a01ca1f50$bc694220$353bc660$@com> <2facd6dc0908170852p36526f03l6516aa308e93e080@mail.gmail.com> <2facd6dc0908180352s3aaa8c3av6d518639ffbe8890@mail.gmail.com> <4A8A8A22.105@redhat.com> <2facd6dc0908180654y556e2e3cgc0ddb62aee3eee29@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Yan Vugenfirer , kvm@vger.kernel.org To: Tom Parkin Return-path: Received: from mx2.redhat.com ([66.187.237.31]:51854 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751087AbZHRO2p (ORCPT ); Tue, 18 Aug 2009 10:28:45 -0400 In-Reply-To: <2facd6dc0908180654y556e2e3cgc0ddb62aee3eee29@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/18/2009 04:54 PM, Tom Parkin wrote: > Hi Vadim, > > 2009/8/18 Vadim Rozenfeld: > >> Try to download symbols first. >> > > Thanks for the tip, it gets me a bit closer -- although still not > fully up and running ! > > With the symbols installed, and the windbg symbol path set, the windbg > process doesn't exit, and does print "Connected to Windows XP ..." > (although the window status bar still reports "Debuggee not > connected"). > did you try /break switch in boot.ini? > However, other than that I have similar behavior as previously > reported -- the target VM hangs on a black screen chewing CPU, and in > time the windbg process starts reporting "GetContextState failed...". > > Furthermore, I tried using kd rather than windbg to attempt to connect > to the target machine: > kd and WinDbg use the same debug engine the only one difference is in user interface. However, kd is much faster. > kd.exe -y -k > > I get different errors from kd: > > "Unable to read head of debugger data list, Win32 error 0n56" > > What is your guest OS? Are you sure you have correct symbols? If you don't need live debugging, you can set up your system to generate crash dump file and use it for post-mortem debugging session. Regards, Vadim > Tom >