From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FnbUd-0003it-IC for qemu-devel@nongnu.org; Tue, 06 Jun 2006 09:21:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FnbUc-0003i9-TP for qemu-devel@nongnu.org; Tue, 06 Jun 2006 09:21:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnbUc-0003hy-Js for qemu-devel@nongnu.org; Tue, 06 Jun 2006 09:21:10 -0400 Received: from [209.191.124.139] (helo=web38112.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1Fnbbz-00072G-RK for qemu-devel@nongnu.org; Tue, 06 Jun 2006 09:28:48 -0400 Message-ID: <20060606132109.67501.qmail@web38112.mail.mud.yahoo.com> Date: Tue, 6 Jun 2006 06:21:09 -0700 (PDT) From: Tieu Ma Dau Subject: Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys In-Reply-To: <20060606134443.41c25d16@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1810222155-1149600069=:66716" Content-Transfer-Encoding: 8bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Robin Green , qemu-devel@nongnu.org --0-1810222155-1149600069=:66716 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In fact, I can connect by using the port 1234 on Linux with the command: (I use arm-toolchain and run the command: arm-linux-gdb vmlinux) (gdb) target remote localhost:1234 And the debugging mode run well (normally) but the problem arrives when running on Windows with Msys/MinGW Furthermore, I had tried make the connection for debugging (target remote qemu-machine:1234) between localhost and Qemu as 2 computers on a LAN but it is not possible; although I can make ping between these 2 computers Do you have any suggestions for this problem? Best regards Thanh Robin Green wrote: 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 --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-1810222155-1149600069=:66716 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In fact, I can connect by using the port 1234 on Linux with the command: (I use arm-toolchain and run the command: arm-linux-gdb vmlinux)
(gdb) target remote localhost:1234
And the debugging mode run well (normally) but the problem arrives when running on Windows with Msys/MinGW
Furthermore, I had tried make the connection for debugging (target remote qemu-machine:1234) between localhost and Qemu as 2 computers on a LAN but it is not possible; although  I can make  ping between these 2 computers
Do you have any suggestions for this problem?
Best regards
Thanh

Robin Green <greenrd@greenrd.org> wrote:
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


Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-1810222155-1149600069=:66716--