From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FnaqF-0007nb-Q1 for qemu-devel@nongnu.org; Tue, 06 Jun 2006 08:39:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FnaqD-0007lR-FR for qemu-devel@nongnu.org; Tue, 06 Jun 2006 08:39:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnaqD-0007lO-B4 for qemu-devel@nongnu.org; Tue, 06 Jun 2006 08:39:25 -0400 Received: from [193.1.169.34] (helo=dakota.ucd.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fnaxa-0002oO-5h for qemu-devel@nongnu.org; Tue, 06 Jun 2006 08:47:02 -0400 Received: from conversion-daemon.dakota.ucd.ie by dakota.ucd.ie (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) id <0J0F00D01UR1PW00@dakota.ucd.ie> (original mail from greenrd@greenrd.org) for qemu-devel@nongnu.org; Tue, 06 Jun 2006 13:39:18 +0100 (IST) Date: Tue, 06 Jun 2006 13:44:43 +0100 From: Robin Green Subject: Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys In-reply-to: <20060606123513.50316.qmail@web38112.mail.mud.yahoo.com> Message-id: <20060606134443.41c25d16@localhost.localdomain> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <20060606123513.50316.qmail@web38112.mail.mud.yahoo.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, 6 Jun 2006 05:35:13 -0700 (PDT) Tieu Ma Dau wrote: > Hi All, > I've compiled Linux kernel 2.6.16 with kgdb on Linux. And after > that, I've tried to debug this kernel with Qemu 0.8.1 on Msys to > simulate ARM Processor. In fact, I've run the command below: > qemu-system-arm -kernel myKernel -initrd arm_root.img -s But I can't > make the connection from arm-toolchain-gdb to the port 1234 (by > default, this port must be openned by Qemu when using the option -s > for debugging) Furthermore, I've confirmed if the port 1234 is > openned or not with the command: netstat -ao and there is not port > 1234 openned. I've also try the option -p 123456 to change the > default port for debugging of Qemu but I've got the same result. Do > you know where the problem arrive? Port 1234 is the port on the virtual machine's IP address, not the port on the real machine's IP address. So you need to be able to access the virtual machine's IP address from the real machine. For this you can use tun/tap networking - see the docs. It is not possible to do this with user-mode networking. -- Robin