public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Ramaraju G <ramaraju.g@nxp.com>
To: Keith Seitz <keiths@redhat.com>
Cc: "insight@sourceware.org" <insight@sourceware.org>
Subject: problem in building Insight debugger
Date: Fri, 17 Jul 2009 06:10:00 -0000	[thread overview]
Message-ID: <E0327731FC899B4D92EBF26CEF2A6B21162673FA73@EU1RDCRDC1WX029.exi.nxp.com> (raw)
In-Reply-To: <4A521C84.5030506@redhat.com>

Hi Keith,
I have downloaded the insight-weekly-6.8.50-20090427.tar of insight available 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_Debug/s
rc/bfd/po'
make[3]: Entering directory `/cygdrive/o/space/__insight_MontaVistaMips32_Debug/
src/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_Debug/s
rc/bfd/po'
make[3]: Entering directory `/cygdrive/o/space/__insight_MontaVistaMips32_Debug/
src/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_Debug/s
rc/bfd'
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_Debug/s
rc/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/cygdrive/o/space/__insight_MontaVistaMips32_Debug/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] 
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 connecting
> to my target , the resposne is 
> 
> (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
> 
> 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. 
Even better: use a snapshot. Insight and gdb are always kept in a usable 
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 
look malformed. According to GDB's remote.c and the documentation, the 
proper reply packet starting with 'T' should be 
"TssN1:R1;N2:R2;...;Nn:Rn". ss = Signal number; N1..Nn = register 
numbers; R1..Rn = register values. I have no idea what "nf1" could 
possibly be.

According to remote_parse_stop_reply in remote.c, the code skips the 
first three bytes of the packet, parsers the next two bytes as a 
register number and looks for the colon that separates this number from 
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, 
let me warn you that I am no pro at the remote protocol.] Are you 
perhaps using some sort of custom Monta Vista extension to the remote 
protocol?

You might have better luck with this question if you email the gdb 
mailing list; that is where the experts hang out, many of them from 
Monta Vista.

Keith

  parent reply	other threads:[~2009-07-17  6:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06 10:52 Facing a malformed packet error using " Insightuser
2009-07-06 15:47 ` Keith Seitz
2009-07-07  5:39   ` Insightuser
2009-07-17  6:10   ` Ramaraju G [this message]
2009-07-17 19:40     ` problem in building " Keith Seitz
2009-07-17 20:57       ` Keith Seitz
2009-07-20  5:29         ` Ramaraju G
2009-07-20  7:16         ` Ramaraju G
2009-07-20 16:24           ` Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E0327731FC899B4D92EBF26CEF2A6B21162673FA73@EU1RDCRDC1WX029.exi.nxp.com \
    --to=ramaraju.g@nxp.com \
    --cc=insight@sourceware.org \
    --cc=keiths@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).