From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fnstu-0001aD-7i for qemu-devel@nongnu.org; Wed, 07 Jun 2006 03:56:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fnsts-0001Zz-UI for qemu-devel@nongnu.org; Wed, 07 Jun 2006 03:56:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fnsts-0001Zw-Nx for qemu-devel@nongnu.org; Wed, 07 Jun 2006 03:56:24 -0400 Received: from [209.191.124.138] (helo=web38111.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1Fnt1Q-0007WF-Bd for qemu-devel@nongnu.org; Wed, 07 Jun 2006 04:04:12 -0400 Message-ID: <20060607075623.12958.qmail@web38111.mail.mud.yahoo.com> Date: Wed, 7 Jun 2006 00:56:23 -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: <1149610822.5762.2.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1508381898-1149666983=:10622" 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: qemu-devel@nongnu.org --0-1508381898-1149666983=:10622 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 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 --0-1508381898-1149666983=:10622 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 --0-1508381898-1149666983=:10622--