qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys
@ 2006-06-06 12:35 Tieu Ma Dau
  2006-06-06 12:44 ` Robin Green
  2006-06-06 16:20 ` Lonnie Mendez
  0 siblings, 2 replies; 10+ messages in thread
From: Tieu Ma Dau @ 2006-06-06 12:35 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

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?  
  Thank you so much for your support.  
  Best regards.  
  Thanh  
			
---------------------------------
Sneak preview the  all-new Yahoo.com. It's not radically different. Just radically better. 

[-- Attachment #2: Type: text/html, Size: 1168 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys
  2006-06-06 12:35 [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys Tieu Ma Dau
@ 2006-06-06 12:44 ` Robin Green
  2006-06-06 13:21   ` Tieu Ma Dau
  2006-06-06 14:10   ` andrzej zaborowski
  2006-06-06 16:20 ` Lonnie Mendez
  1 sibling, 2 replies; 10+ messages in thread
From: Robin Green @ 2006-06-06 12:44 UTC (permalink / raw)
  To: qemu-devel

On Tue, 6 Jun 2006 05:35:13 -0700 (PDT)
Tieu Ma Dau <tieumadauy2k@yahoo.com> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys
  2006-06-06 12:44 ` Robin Green
@ 2006-06-06 13:21   ` Tieu Ma Dau
  2006-06-06 14:10   ` andrzej zaborowski
  1 sibling, 0 replies; 10+ messages in thread
From: Tieu Ma Dau @ 2006-06-06 13:21 UTC (permalink / raw)
  To: Robin Green, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 2520 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys
  2006-06-06 12:44 ` Robin Green
  2006-06-06 13:21   ` Tieu Ma Dau
@ 2006-06-06 14:10   ` andrzej zaborowski
  2006-06-06 14:18     ` Tieu Ma Dau
  2006-06-06 14:36     ` Robin Green
  1 sibling, 2 replies; 10+ messages in thread
From: andrzej zaborowski @ 2006-06-06 14:10 UTC (permalink / raw)
  To: qemu-devel

Hi,

On 06/06/06, Robin Green <greenrd@greenrd.org> wrote:
> On Tue, 6 Jun 2006 05:35:13 -0700 (PDT)
> Tieu Ma Dau <tieumadauy2k@yahoo.com> 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.

Acutally you don't need networking in the guest. QEMU listens on the
host's port 1234 (and I think it listens on all interfaces, not only
localhost, but I'm not sure of this one -- if this is not the case,
make a ssh tunnel to debug remotely).

>
> --
> Robin
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

Regards,
Andrew
-- 
balrog 2oo6

Dear Outlook users: Please remove me from your address books
http://www.newsforge.com/article.pl?sid=03/08/21/143258

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys
  2006-06-06 14:10   ` andrzej zaborowski
@ 2006-06-06 14:18     ` Tieu Ma Dau
  2006-06-06 14:36     ` Robin Green
  1 sibling, 0 replies; 10+ messages in thread
From: Tieu Ma Dau @ 2006-06-06 14:18 UTC (permalink / raw)
  To: balrogg, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2871 bytes --]

Hi, 
  Have you already read my previous reply? I wrote that:
  [quote]
        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
  [/quote]
  So as you wrote, it must make the UDP connection between localhost and  qemu? Because I don't understand exactly what you want to say in term  of "ssh tunnel to debug remotely".
  Best regards
  Thanh

andrzej zaborowski <balrog@zabor.org> wrote:  Hi,

On 06/06/06, 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.

Acutally you don't need networking in the guest. QEMU listens on the
host's port 1234 (and I think it listens on all interfaces, not only
localhost, but I'm not sure of this one -- if this is not the case,
make a ssh tunnel to debug remotely).

>
> --
> Robin
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

Regards,
Andrew
-- 
balrog 2oo6

Dear Outlook users: Please remove me from your address books
http://www.newsforge.com/article.pl?sid=03/08/21/143258


_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


				
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

[-- Attachment #2: Type: text/html, Size: 3752 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys
  2006-06-06 14:10   ` andrzej zaborowski
  2006-06-06 14:18     ` Tieu Ma Dau
@ 2006-06-06 14:36     ` Robin Green
  1 sibling, 0 replies; 10+ messages in thread
From: Robin Green @ 2006-06-06 14:36 UTC (permalink / raw)
  To: balrogg, qemu-devel; +Cc: balrog

On Tue, 6 Jun 2006 16:10:39 +0200
"andrzej zaborowski" <balrog@zabor.org> wrote:
> Acutally you don't need networking in the guest. QEMU listens on the
> host's port 1234

Yes, you're right. Sorry - I had misread the email and assumed the
original poster was trying to connect to a debugger running on the
guest.
-- 
Robin

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys
  2006-06-06 12:35 [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys Tieu Ma Dau
  2006-06-06 12:44 ` Robin Green
@ 2006-06-06 16:20 ` Lonnie Mendez
  2006-06-07  7:56   ` Tieu Ma Dau
  1 sibling, 1 reply; 10+ messages in thread
From: Lonnie Mendez @ 2006-06-06 16:20 UTC (permalink / raw)
  To: qemu-devel

On Tue, 2006-06-06 at 05:35 -0700, 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? 

Have you seen this?

http://lists.gnu.org/archive/html/qemu-devel/2006-05/msg00457.html


http://lists.gnu.org/archive/html/qemu-devel/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys
  2006-06-06 16:20 ` Lonnie Mendez
@ 2006-06-07  7:56   ` Tieu Ma Dau
  2006-06-07 11:23     ` [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 onMsys Kazu
  0 siblings, 1 reply; 10+ messages in thread
From: Tieu Ma Dau @ 2006-06-07  7:56 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 5837 bytes --]

I recently try the patch you recommend but I got the same result. In  fact, after make this patch into Qemu source code 0.8.1, I compiled it  with these commands:
  ./configure --prefix=/travail/install/qemu-8.1
  make install
  And I run Qemu to simulate ARM on debugging mode:
  ./qemu-system-arm -kernel myKernel-with-kgdb -initrd arm_root.img -s
  And I tried to connect to Qemu by default port 1234: (gdb) target remote localhost:1234
  But I got the error: connection refused
  So I test the current openned port in localhost by the command: netstat -ao
  And the result I got is below: 
  [code]
  Connexions actives
  
    Proto   Adresse locale         Adresse  distante       Etat
     TCP     vinh-phu:epmap          vinh-phu:0              LISTENING       1056
     TCP    vinh-phu:microsoft-ds   vinh-phu:0              LISTENING       4
     TCP     vinh-phu:1025           vinh-phu:0              LISTENING       1216
     TCP     vinh-phu:1027           vinh-phu:0              LISTENING       4
     TCP     vinh-phu:2869           vinh-phu:0              LISTENING       1416
     TCP     vinh-phu:3016           vinh-phu:0              LISTENING       2036
     TCP     vinh-phu:3019           vinh-phu:0              LISTENING       2012
     TCP     vinh-phu:3026           vinh-phu:0              LISTENING       2012
     TCP     vinh-phu:5000           vinh-phu:0              LISTENING       1416
     TCP     vinh-phu:5101           vinh-phu:0              LISTENING       2012
     TCP     vinh-phu:3001           vinh-phu:0              LISTENING       1800
     TCP     vinh-phu:3002           vinh-phu:0              LISTENING       1216
     TCP     vinh-phu:3003           vinh-phu:0              LISTENING       1216
     TCP     vinh-phu:3015           vinh-phu:0              LISTENING       2036
     TCP     vinh-phu:3015           localhost:3016          ESTABLISHED     2036
     TCP     vinh-phu:3016           localhost:3015          ESTABLISHED     2036
     TCP     vinh-phu:3019           cs8.msg.dcn.yahoo.com:5050  ESTABLISHED      2012
     TCP     vinh-phu:3026           sip7.voice.re2.yahoo.com:5061  ESTABLISHED      2012
     TCP     vinh-phu:15871          vinh-phu:0              LISTENING       1988
     UDP     vinh-phu:epmap          *:*                                     1056
     UDP    vinh-phu:microsoft-ds   *:*                                     4
     UDP     vinh-phu:isakmp         *:*                                     896
     UDP     vinh-phu:1026           *:*                                     1216
     UDP     vinh-phu:3004           *:*                                     1216
     UDP     vinh-phu:3011           *:*                                     1988
     UDP     vinh-phu:3012           *:*                                     1384
     UDP     vinh-phu:3025           *:*                                     1384
     UDP     vinh-phu:3068           *:*                                     1384
     UDP     vinh-phu:3069           *:*                                     1384
     UDP     vinh-phu:3071           *:*                                     1384
     UDP     vinh-phu:3072           *:*                                     1384
     UDP     vinh-phu:3073           *:*                                     1384
     UDP     vinh-phu:3074           *:*                                     1384
     UDP     vinh-phu:ntp            *:*                                     1216
     UDP     vinh-phu:1900           *:*                                     1416
     UDP     vinh-phu:3005           *:*                                     1216
     UDP     vinh-phu:3009           *:*                                     1216
     UDP     vinh-phu:3022           *:*                                     2012
     UDP     vinh-phu:3441           *:*                                     2036
     UDP     vinh-phu:3997           *:*                                     1540
     UDP     vinh-phu:ntp            *:*                                     1216
     UDP     vinh-phu:1900           *:*                                     1416
     UDP     vinh-phu:3030           *:*                                     2012
     UDP     vinh-phu:3031           *:*                                     2012
     UDP     vinh-phu:8257           *:*                                     1988
     UDP     vinh-phu:57073          *:*                                     1988
  [/code]
  Do you know any suggestion for this problem?
  Thanks so much
  Best regards.
  Thanh
  
Lonnie Mendez <lmendez19@austin.rr.com> wrote:  On Tue, 2006-06-06 at 05:35 -0700, 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? 

Have you seen this?

http://lists.gnu.org/archive/html/qemu-devel/2006-05/msg00457.html


http://lists.gnu.org/archive/html/qemu-devel/




_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Attachment #2: Type: text/html, Size: 21424 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 onMsys
  2006-06-07  7:56   ` Tieu Ma Dau
@ 2006-06-07 11:23     ` Kazu
  2006-06-07 11:53       ` Tieu Ma Dau
  0 siblings, 1 reply; 10+ messages in thread
From: Kazu @ 2006-06-07 11:23 UTC (permalink / raw)
  To: qemu-devel


Sent: Wednesday, June 07, 2006 4:56 PM Tieu Ma Dau wrote:


>I recently try the patch you recommend but I got the same result. In fact,
after make this patch into Qemu source code >0.8.1, I compiled it with these
commands:
>./configure --prefix=/travail/install/qemu-8.1
>make install
>And I run Qemu to simulate ARM on debugging mode:
>./qemu-system-arm -kernel myKernel-with-kgdb -initrd arm_root.img -s
>And I tried to connect to Qemu by default port 1234: (gdb) target remote
localhost:1234
>But I got the error: connection refused

MinGW's gdb doesn't support network debugging. You need to use Cygwin's gdb
for remote debugging with network.

>So I test the current openned port in localhost by the command: netstat -ao
>And the result I got is below:
>[code]
>Connexions actives

  Proto  Adresse locale         Adresse distante       Etat
  TCP    vinh-phu:epmap         vinh-phu:0             LISTENING       1056
  TCP    vinh-phu:microsoft-ds  vinh-phu:0             LISTENING       4
  TCP    vinh-phu:1025          vinh-phu:0             LISTENING       1216
  TCP    vinh-phu:1027          vinh-phu:0             LISTENING       4
  TCP    vinh-phu:2869          vinh-phu:0             LISTENING       1416
  TCP    vinh-phu:3016          vinh-phu:0             LISTENING       2036
  TCP    vinh-phu:3019          vinh-phu:0             LISTENING       2012
  TCP    vinh-phu:3026          vinh-phu:0             LISTENING       2012
  TCP    vinh-phu:5000          vinh-phu:0             LISTENING       1416
  TCP    vinh-phu:5101          vinh-phu:0             LISTENING       2012
  TCP    vinh-phu:3001          vinh-phu:0             LISTENING       1800
  TCP    vinh-phu:3002          vinh-phu:0             LISTENING       1216
  TCP    vinh-phu:3003          vinh-phu:0             LISTENING       1216
  TCP    vinh-phu:3015          vinh-phu:0             LISTENING       2036
  TCP    vinh-phu:3015          localhost:3016         ESTABLISHED     2036
  TCP    vinh-phu:3016          localhost:3015         ESTABLISHED     2036
  TCP    vinh-phu:3019          cs8.msg.dcn.yahoo.com:5050  ESTABLISHED
2012
  TCP    vinh-phu:3026          sip7.voice.re2.yahoo.com:5061  ESTABLISHED
2012
  TCP    vinh-phu:15871         vinh-phu:0             LISTENING       1988
  UDP    vinh-phu:epmap         *:*                                    1056
  UDP    vinh-phu:microsoft-ds  *:*                                    4
  UDP    vinh-phu:isakmp        *:*                                    896
  UDP    vinh-phu:1026          *:*                                    1216
  UDP    vinh-phu:3004          *:*                                    1216
  UDP    vinh-phu:3011          *:*                                    1988
  UDP    vinh-phu:3012          *:*                                    1384
  UDP    vinh-phu:3025          *:*                                    1384
  UDP    vinh-phu:3068          *:*                                    1384
  UDP    vinh-phu:3069          *:*                                    1384
  UDP    vinh-phu:3071          *:*                                    1384
  UDP    vinh-phu:3072          *:*                                    1384
  UDP    vinh-phu:3073          *:*                                    1384
  UDP    vinh-phu:3074          *:*                                    1384
  UDP    vinh-phu:ntp           *:*                                    1216
  UDP    vinh-phu:1900          *:*                                    1416
  UDP    vinh-phu:3005          *:*                                    1216
  UDP    vinh-phu:3009          *:*                                    1216
  UDP    vinh-phu:3022          *:*                                    2012
  UDP    vinh-phu:3441          *:*                                    2036
  UDP    vinh-phu:3997          *:*                                    1540
  UDP    vinh-phu:ntp           *:*                                    1216
  UDP    vinh-phu:1900          *:*                                    1416
  UDP    vinh-phu:3030          *:*                                    2012
  UDP    vinh-phu:3031          *:*                                    2012
  UDP    vinh-phu:8257          *:*                                    1988
  UDP    vinh-phu:57073         *:*                                    1988
[/code]
>Do you know any suggestion for this problem?

Port 1234 doesn't open. The program doesn't work well. If you use the patch
, TCP 1234 port will be used. Did you see this message?

Waiting gdb connection on port 1234

Regards,
Kazu

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 onMsys
  2006-06-07 11:23     ` [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 onMsys Kazu
@ 2006-06-07 11:53       ` Tieu Ma Dau
  0 siblings, 0 replies; 10+ messages in thread
From: Tieu Ma Dau @ 2006-06-07 11:53 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 6490 bytes --]

> MinGW's gdb doesn't support network debugging. You need to use Cygwin's gdb for remote debugging with network.
  I installed gcc-4.0 toolchain (so it also include gdb) from http://www.gnuarm.com/ to debug the code generated for ARM Linux. 
  And I did not install Cygwin because when I had installed this gcc-4.0  toolchain, the installer had asked me if I want to install the files  .dll used by Cygwin in case of I had not installed Cygwin as well.  Finally, it means I did not installed Cygwin but installed gcc-4.0  toolchain and I can run well the command (used for debug ARM Linux  code): arm-elf-gdb
  
  >Port 1234 doesn't open. The program doesn't work well. If you use the patch
  , TCP 1234 port will be used. Did you see this message?
  
  >Waiting gdb connection on port 1234
  I said that I've applied this patch to source code and recompiled this source code but I got the same problem.
  For the msg: "Waiting gdb connection on port 1234", I did not see this  message in the screen of Msys (because I think that Qemu must use stdio to print the message on the console of Msys but there is not stdio in Msys/Windows) but I don't know if it can be printed on the screen (the new window for Qemu when running Qemu from Msys) of Qemu or not; because this screen scroll very fast and I could not see all the messages on the screen. 
  So do you have any suggestions to see  all of which printed on the screen of Qemu? And any solutions to test  if the port 1234 is already openned or not? Or any another patches?
  Thanks so much and best regards.
  Thanh
  
Kazu <kazoo@r3.dion.ne.jp> wrote:  
Sent: Wednesday, June 07, 2006 4:56 PM Tieu Ma Dau wrote:


>I recently try the patch you recommend but I got the same result. In fact,
after make this patch into Qemu source code >0.8.1, I compiled it with these
commands:
>./configure --prefix=/travail/install/qemu-8.1
>make install
>And I run Qemu to simulate ARM on debugging mode:
>./qemu-system-arm -kernel myKernel-with-kgdb -initrd arm_root.img -s
>And I tried to connect to Qemu by default port 1234: (gdb) target remote
localhost:1234
>But I got the error: connection refused

MinGW's gdb doesn't support network debugging. You need to use Cygwin's gdb
for remote debugging with network.

>So I test the current openned port in localhost by the command: netstat -ao
>And the result I got is below:
>[code]
>Connexions actives

  Proto  Adresse locale         Adresse distante       Etat
  TCP    vinh-phu:epmap         vinh-phu:0             LISTENING       1056
  TCP    vinh-phu:microsoft-ds  vinh-phu:0             LISTENING       4
  TCP    vinh-phu:1025          vinh-phu:0             LISTENING       1216
  TCP    vinh-phu:1027          vinh-phu:0             LISTENING       4
  TCP    vinh-phu:2869          vinh-phu:0             LISTENING       1416
  TCP    vinh-phu:3016          vinh-phu:0             LISTENING       2036
  TCP    vinh-phu:3019          vinh-phu:0             LISTENING       2012
  TCP    vinh-phu:3026          vinh-phu:0             LISTENING       2012
  TCP    vinh-phu:5000          vinh-phu:0             LISTENING       1416
  TCP    vinh-phu:5101          vinh-phu:0             LISTENING       2012
  TCP    vinh-phu:3001          vinh-phu:0             LISTENING       1800
  TCP    vinh-phu:3002          vinh-phu:0             LISTENING       1216
  TCP    vinh-phu:3003          vinh-phu:0             LISTENING       1216
  TCP    vinh-phu:3015          vinh-phu:0             LISTENING       2036
  TCP    vinh-phu:3015          localhost:3016         ESTABLISHED     2036
  TCP    vinh-phu:3016          localhost:3015         ESTABLISHED     2036
  TCP    vinh-phu:3019          cs8.msg.dcn.yahoo.com:5050  ESTABLISHED
2012
  TCP    vinh-phu:3026          sip7.voice.re2.yahoo.com:5061  ESTABLISHED
2012
  TCP    vinh-phu:15871         vinh-phu:0             LISTENING       1988
  UDP    vinh-phu:epmap         *:*                                    1056
  UDP    vinh-phu:microsoft-ds  *:*                                    4
  UDP    vinh-phu:isakmp        *:*                                    896
  UDP    vinh-phu:1026          *:*                                    1216
  UDP    vinh-phu:3004          *:*                                    1216
  UDP    vinh-phu:3011          *:*                                    1988
  UDP    vinh-phu:3012          *:*                                    1384
  UDP    vinh-phu:3025          *:*                                    1384
  UDP    vinh-phu:3068          *:*                                    1384
  UDP    vinh-phu:3069          *:*                                    1384
  UDP    vinh-phu:3071          *:*                                    1384
  UDP    vinh-phu:3072          *:*                                    1384
  UDP    vinh-phu:3073          *:*                                    1384
  UDP    vinh-phu:3074          *:*                                    1384
  UDP    vinh-phu:ntp           *:*                                    1216
  UDP    vinh-phu:1900          *:*                                    1416
  UDP    vinh-phu:3005          *:*                                    1216
  UDP    vinh-phu:3009          *:*                                    1216
  UDP    vinh-phu:3022          *:*                                    2012
  UDP    vinh-phu:3441          *:*                                    2036
  UDP    vinh-phu:3997          *:*                                    1540
  UDP    vinh-phu:ntp           *:*                                    1216
  UDP    vinh-phu:1900          *:*                                    1416
  UDP    vinh-phu:3030          *:*                                    2012
  UDP    vinh-phu:3031          *:*                                    2012
  UDP    vinh-phu:8257          *:*                                    1988
  UDP    vinh-phu:57073         *:*                                    1988
[/code]
>Do you know any suggestion for this problem?

Port 1234 doesn't open. The program doesn't work well. If you use the patch
, TCP 1234 port will be used. Did you see this message?

Waiting gdb connection on port 1234

Regards,
Kazu



_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Attachment #2: Type: text/html, Size: 7546 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-06-07 11:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-06 12:35 [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 on Msys Tieu Ma Dau
2006-06-06 12:44 ` Robin Green
2006-06-06 13:21   ` Tieu Ma Dau
2006-06-06 14:10   ` andrzej zaborowski
2006-06-06 14:18     ` Tieu Ma Dau
2006-06-06 14:36     ` Robin Green
2006-06-06 16:20 ` Lonnie Mendez
2006-06-07  7:56   ` Tieu Ma Dau
2006-06-07 11:23     ` [Qemu-devel] Ask for debugging linux kernel with Qemu 0.8.1 onMsys Kazu
2006-06-07 11:53       ` Tieu Ma Dau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).