* Facing a malformed packet error using Insight debugger
@ 2009-07-06 10:52 Insightuser
2009-07-06 15:47 ` Keith Seitz
0 siblings, 1 reply; 9+ messages in thread
From: Insightuser @ 2009-07-06 10:52 UTC (permalink / raw)
To: insight
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.
If I use the insight gdb, the following problem is faced.
$
/cygdrive/c/Insight6.8/tuxbuilder-1.1/mipsel-unknown-linux-gnu/cross/usr/bin/
mipsel-linux-gdb.org.exe ./philips/apps/amApp
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-cross-cygwin
--target=mipsel-linux"...
entry: ~/.gdbinit
exit: ~/.gdbinit
(gdb) set solib-absolute-prefix .
(gdb) target remote 192.168.12.162:1000
Remote debugging using 192.168.12.162:1000
0x2aaa8830 in __start () at ../ports/sysdeps/mips/dl-machine.h:81
81 ../ports/sysdeps/mips/dl-machine.h: No such file or directory.
in ../ports/sysdeps/mips/dl-machine.h
(gdb) c
Continuing.
[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;'
(gdb)
please let me know How do I solve the malformed packet error.
--
View this message in context: http://www.nabble.com/Facing-a-malformed-packet-error-using-Insight-debugger-tp24353378p24353378.html
Sent from the Sourceware - insight list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Facing a malformed packet error using Insight debugger
2009-07-06 10:52 Facing a malformed packet error using Insight debugger Insightuser
@ 2009-07-06 15:47 ` Keith Seitz
2009-07-07 5:39 ` Insightuser
2009-07-17 6:10 ` problem in building " Ramaraju G
0 siblings, 2 replies; 9+ messages in thread
From: Keith Seitz @ 2009-07-06 15:47 UTC (permalink / raw)
To: Insightuser; +Cc: insight
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Facing a malformed packet error using Insight debugger
2009-07-06 15:47 ` Keith Seitz
@ 2009-07-07 5:39 ` Insightuser
2009-07-17 6:10 ` problem in building " Ramaraju G
1 sibling, 0 replies; 9+ messages in thread
From: Insightuser @ 2009-07-07 5:39 UTC (permalink / raw)
To: insight
Hi Keith,
Thanks for your reply.
The show version in montavista gdb shows:
(gdb) show version
GNU gdb 6.6.50.20070301 (MontaVista 6.6.50-2.0.5.0703840 2007-08-23)
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin
--target=mipsel-montavista-lin
ux-gnu".
And the insight gdb shows :
(gdb) show version
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-cross-cygwin --target=mipsel-linux".
My gdbserver doesn't print any version information when it is started.
as you suggested, I would mail this to gdb mailing list as well.
thanks,
Raju
Keith Seitz wrote:
>
> 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
>
>
--
View this message in context: http://www.nabble.com/Facing-a-malformed-packet-error-using-Insight-debugger-tp24353378p24367433.html
Sent from the Sourceware - insight list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* problem in building Insight debugger
2009-07-06 15:47 ` Keith Seitz
2009-07-07 5:39 ` Insightuser
@ 2009-07-17 6:10 ` Ramaraju G
2009-07-17 19:40 ` Keith Seitz
1 sibling, 1 reply; 9+ messages in thread
From: Ramaraju G @ 2009-07-17 6:10 UTC (permalink / raw)
To: Keith Seitz; +Cc: insight
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem in building Insight debugger
2009-07-17 6:10 ` problem in building " Ramaraju G
@ 2009-07-17 19:40 ` Keith Seitz
2009-07-17 20:57 ` Keith Seitz
0 siblings, 1 reply; 9+ messages in thread
From: Keith Seitz @ 2009-07-17 19:40 UTC (permalink / raw)
To: Ramaraju G; +Cc: insight
On 07/16/2009 11:09 PM, Ramaraju G wrote:
> 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
You haven't left me enough of the build output to actually see the error...
Keith
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem in building Insight debugger
2009-07-17 19:40 ` Keith Seitz
@ 2009-07-17 20:57 ` Keith Seitz
2009-07-20 5:29 ` Ramaraju G
2009-07-20 7:16 ` Ramaraju G
0 siblings, 2 replies; 9+ messages in thread
From: Keith Seitz @ 2009-07-17 20:57 UTC (permalink / raw)
To: Ramaraju G; +Cc: insight
On 07/17/2009 12:40 PM, Keith Seitz wrote:
> You haven't left me enough of the build output to actually see the error...
Cincidentally enough, I just ran into this on my own, newly installed
Fedora 11 system. I think this is probably your problem:
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
make[2]: *** [bfd.info] Error 1
As the warning suggests, you must have the texinfo package installed.
This is required to build a snapshot.
If this isn't the problem you have afterall, then you must send the
actual error message.
Keith
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: problem in building Insight debugger
2009-07-17 20:57 ` Keith Seitz
@ 2009-07-20 5:29 ` Ramaraju G
2009-07-20 7:16 ` Ramaraju G
1 sibling, 0 replies; 9+ messages in thread
From: Ramaraju G @ 2009-07-20 5:29 UTC (permalink / raw)
To: Keith Seitz; +Cc: insight
Yes, Keith, After installing the texinfo and GNU make, my build is through.
thanks
-----Original Message-----
From: Keith Seitz [mailto:keiths@redhat.com]
Sent: 2009 Jul 18 2:27 AM
To: Ramaraju G
Cc: insight@sourceware.org
Subject: Re: problem in building Insight debugger
On 07/17/2009 12:40 PM, Keith Seitz wrote:
> You haven't left me enough of the build output to actually see the error...
Cincidentally enough, I just ran into this on my own, newly installed
Fedora 11 system. I think this is probably your problem:
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
make[2]: *** [bfd.info] Error 1
As the warning suggests, you must have the texinfo package installed.
This is required to build a snapshot.
If this isn't the problem you have afterall, then you must send the
actual error message.
Keith
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: problem in building Insight debugger
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
1 sibling, 1 reply; 9+ messages in thread
From: Ramaraju G @ 2009-07-20 7:16 UTC (permalink / raw)
To: Keith Seitz; +Cc: insight
Hi Keith,
I have built the latest version of gdb. Facing the following error while debugging with montavista gdbserver.
Any idea on how to fix this ?
O:\space\__insight_MontaVistaMips32_Debug\insightdebugger\bin>mips2_fp_le-gdb.ex
e /cygdrive/y/philips/apps/amApp
GNU gdb (GDB) 6.8.50.20090427-cvs
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin --target=mips2_fp_le".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) cd y:
Working directory /cygdrive/y.
(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
Continuing.
Malformed packet(b) (missing colon): ;25:bcc9d62a;1d:f82aa57f;thread:eb;
Packet: 'TR237;25:bcc9d62a;1d:f82aa57f;thread:eb;'
regards,
raju
-----Original Message-----
From: Keith Seitz [mailto:keiths@redhat.com]
Sent: 2009 Jul 18 2:27 AM
To: Ramaraju G
Cc: insight@sourceware.org
Subject: Re: problem in building Insight debugger
On 07/17/2009 12:40 PM, Keith Seitz wrote:
> You haven't left me enough of the build output to actually see the error...
Cincidentally enough, I just ran into this on my own, newly installed
Fedora 11 system. I think this is probably your problem:
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
make[2]: *** [bfd.info] Error 1
As the warning suggests, you must have the texinfo package installed.
This is required to build a snapshot.
If this isn't the problem you have afterall, then you must send the
actual error message.
Keith
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: problem in building Insight debugger
2009-07-20 7:16 ` Ramaraju G
@ 2009-07-20 16:24 ` Keith Seitz
0 siblings, 0 replies; 9+ messages in thread
From: Keith Seitz @ 2009-07-20 16:24 UTC (permalink / raw)
To: Ramaraju G; +Cc: insight
On 07/20/2009 12:15 AM, Ramaraju G wrote:
> (gdb) c
> Continuing.
> Malformed packet(b) (missing colon): ;25:bcc9d62a;1d:f82aa57f;thread:eb;
> Packet: 'TR237;25:bcc9d62a;1d:f82aa57f;thread:eb;'
Oddly, enough, this came up just recently...
http://sourceware.org/ml/gdb/2009-07/msg00037.html
Keith
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-07-20 16:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-06 10:52 Facing a malformed packet error using Insight debugger Insightuser
2009-07-06 15:47 ` Keith Seitz
2009-07-07 5:39 ` Insightuser
2009-07-17 6:10 ` problem in building " Ramaraju G
2009-07-17 19:40 ` 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
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).