From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lwy6j-0004Cf-2n for qemu-devel@nongnu.org; Thu, 23 Apr 2009 08:32:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lwy6e-000465-1r for qemu-devel@nongnu.org; Thu, 23 Apr 2009 08:32:48 -0400 Received: from [199.232.76.173] (port=35382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwy6d-00045E-F8 for qemu-devel@nongnu.org; Thu, 23 Apr 2009 08:32:43 -0400 Received: from fk-out-0910.google.com ([209.85.128.184]:7645) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lwy6c-0005NX-P5 for qemu-devel@nongnu.org; Thu, 23 Apr 2009 08:32:43 -0400 Received: by fk-out-0910.google.com with SMTP id z22so223350fkz.2 for ; Thu, 23 Apr 2009 05:32:40 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 23 Apr 2009 15:32:39 +0300 Message-ID: <1295ed070904230532u7ff434f9r4516a00178d40823@mail.gmail.com> From: Pantelis Koukousoulas Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] windbg and serial List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I 've been trying to get windbg in one guest to debug a kernel in another guest through an emulated serial port connection. There are several blog posts and a few mails to this list and kvm/kvm-devel from people who claim to have made this functionality to work, yet nothing seems to work for me with latest qemu git. What I 've tried: Start the debuggee guest with -serial tcp:localhost:1234,server Start the debugger guest with -serial tcp:localhost:1234 (The debuggee has the right options (/debugport, /baudrate) in its boot.ini.) When the debuggee starts and after the connection of the sockets is done, both guests start to boot and the debuggee stops in its boot menu. I 'm selecting the "debug" menu option (to stop the countdown timer). Then I wait until the debugger boots fully, start windbg, ask it to connect via com1, baudrate=112500bps and when it says "waiting to reconnect..." I 'm continuing the debuggee boot process. At this point I would expect to see something like "Debugger connection established' in the debugger guest, yet nothing. It just continues waiting and after a while windbg just closes with an "unable to connect" message. At this point the debuggee continues boot normally. I 've verified that the serial connection works by trying hyperterminal on both guests and observing each to be able to send/receive text to the other just fine. The qemu versions tested were current git as of today and also with the patch in http://damogran.de/blog/archives/14-WinDbg-and-QEMU.html The guests are both winxp sp3 32-bit. The host is 64-bit (kernel/userland) but hopefully this is not very relevant for qemu. Has anyone else here managed to make this configuration (guest XP debugging another guest XP through serial port) work? I 'd be interested in any ideas on how to achieve that or debug the problem further. Thanks in advance, Pantelis