From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26165 invoked by alias); 17 Jul 2009 06:10:32 -0000 Received: (qmail 26156 invoked by uid 22791); 17 Jul 2009 06:10:31 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from be1ssnxpe2.nxp.com (HELO be1ssnxpe2.nxp.com) (57.67.164.70) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Jul 2009 06:10:24 +0000 Received: from EU1RDCRDC1VW024.exi.nxp.com ([134.27.176.169]) by be1ssnxpe2.nxp.com (8.14.3/8.14.3) with ESMTP id n6H6A24D027078 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL); Fri, 17 Jul 2009 08:10:02 +0200 Received: from EU1RDCRDC1WX029.exi.nxp.com ([134.27.176.238]) by EU1RDCRDC1VW024.exi.nxp.com ([134.27.176.169]) with mapi; Fri, 17 Jul 2009 08:10:10 +0200 From: Ramaraju G To: Keith Seitz CC: "insight@sourceware.org" Date: Fri, 17 Jul 2009 06:10:00 -0000 Subject: problem in building Insight debugger Message-ID: References: <24353378.post@talk.nabble.com> <4A521C84.5030506@redhat.com> In-Reply-To: <4A521C84.5030506@redhat.com> x-cr-hashedpuzzle: AXrI CDx9 DCDV I/FS JtOK KHEZ Kk1b L8yG NXaH OTrk RsJu TbKg WdY6 Wphn WwDw Xtyv;2;aQBuAHMAaQBnAGgAdABAAHMAbwB1AHIAYwBlAHcAYQByAGUALgBvAHIAZwA7AGsAZQBpAHQAaABzAEAAcgBlAGQAaABhAHQALgBjAG8AbQA=;Sosha1_v1;7;{55355283-D9B4-49B7-B050-855D8C0725B9};cgBhAG0AYQByAGEAagB1AC4AZwBAAG4AeABwAC4AYwBvAG0A;Fri, 17 Jul 2009 06:09:48 GMT;cAByAG8AYgBsAGUAbQAgAGkAbgAgAGIAdQBpAGwAZABpAG4AZwAgAEkAbgBzAGkAZwBoAHQAIABkAGUAYgB1AGcAZwBlAHIA x-cr-puzzleid: {55355283-D9B4-49B7-B050-855D8C0725B9} Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5,1.2.40,4.0.166 definitions=2009-07-17_03:2009-07-03,2009-07-17,2009-07-16 signatures=0 Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00020.txt.bz2 Hi Keith, I have downloaded the insight-weekly-6.8.50-20090427.tar of insight availab= le on ftp://sourceware.org/pub/insight/snapshots/current/ I am trying to build it using cygwin. Facing the following error. config.status: creating po/Makefile.in config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default-1 commands config.status: executing bfd_stdint.h commands config.status: executing default commands make[3]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_De= bug/s rc/bfd/po' make[3]: Entering directory `/cygdrive/o/space/__insight_MontaVistaMips32_D= ebug/ src/bfd/po' make[3]: Nothing to be done for `info'. make[3]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_De= bug/s rc/bfd/po' make[3]: Entering directory `/cygdrive/o/space/__insight_MontaVistaMips32_D= ebug/ src/bfd' make[3]: Nothing to be done for `info-am'. make[3]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_De= bug/s rc/bfd' make[2]: *** [info-recursive] Error 1 make[2]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_De= bug/s rc/bfd' make[1]: *** [all-bfd] Error 2 make[1]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_De= bug/s rc' make: *** [all] Error 2 ing01536@INGBTCPIC6NB322 /cygdrive/o/space/__insight_MontaVistaMips32_Debug= /src $ Can you please let me know how to fix this error. regards, Raju -----Original Message----- From: Keith Seitz [mailto:keiths@redhat.com]=20 Sent: 2009 Jul 06 9:17 PM To: Ramaraju G Cc: insight@sourceware.org Subject: Re: Facing a malformed packet error using Insight debugger Insightuser wrote: > Hi, > I am using insight to debug my target mips2. > If I use the command line debugger provided by montavista, after connecti= ng > to my target , the resposne is=20 >=20 > (gdb) set solib-absolute-prefix . > (gdb) target remote 192.168.12.162:1000 > Remote debugging using 192.168.12.162:1000 > 0x2aaa8830 in __start () from ./lib/ld.so.1 > (gdb) c >=20 > and this works fine. You left off the version information -- what does "show version" say? > GNU gdb 6.6 > Copyright (C) 2006 Free Software Foundation, Inc. Wow, that is one old debugger!! I really suggest you try at least 6.8.=20 Even better: use a snapshot. Insight and gdb are always kept in a usable=20 state. I only ever use CVS HEAD for my daily work. > [New Thread 240] > warning: Invalid remote reply: nf1 > Malformed packet(b) (missing colon): 25:bcc9d62a;1d:f8aa9c7f;thread:f0; > Packet: 'TR242;25:bcc9d62a;1d:f8aa9c7f;thread:f0;' I'm long out of practice with the remote protocol, but this packet does=20 look malformed. According to GDB's remote.c and the documentation, the=20 proper reply packet starting with 'T' should be=20 "TssN1:R1;N2:R2;...;Nn:Rn". ss =3D Signal number; N1..Nn =3D register=20 numbers; R1..Rn =3D register values. I have no idea what "nf1" could=20 possibly be. According to remote_parse_stop_reply in remote.c, the code skips the=20 first three bytes of the packet, parsers the next two bytes as a=20 register number and looks for the colon that separates this number from=20 the value. It doesn't find the colon, and the error above is emitted. As far as I can tell, gdb/insight are working as designed. [But again,=20 let me warn you that I am no pro at the remote protocol.] Are you=20 perhaps using some sort of custom Monta Vista extension to the remote=20 protocol? You might have better luck with this question if you email the gdb=20 mailing list; that is where the experts hang out, many of them from=20 Monta Vista. Keith