This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem in building Insight debugger


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]