Linux MIPS Architecture development
 help / color / mirror / Atom feed
* remote debugging: "Reply contains invalid hex digit 59"
@ 2005-07-19 13:52 Bryan Althouse
       [not found] ` <1121783462.12629.10.camel@euskadi.packetvision>
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Bryan Althouse @ 2005-07-19 13:52 UTC (permalink / raw)
  To: 'Linux/MIPS Development'


Is anyone doing remote debugging for mips?  

I start the gdbserver on mips with:  
    gdbserver 192.168.2.39:2222 ./hello_loop
This produces:
    Process ./hello_loop created; pid = 158

On my PC, I type:
    ddd --debugger mips64-linux-gnu-gdb hello_loop
    (at gdb prompt) target remote 192.168.2.55:2222

This produces:
    (on gdb prompt) Couldn't establish connection to remote target
     Reply contains invalid hex digit 59
    (on mips) Remote debugging from host 192.168.2.39
     Readchar: Got EOF
     Remote side has terminated connection.  GDBserver will reopen the
connection. 

This problem is also described here:
http://mailman.uclinux.org/pipermail/uclinux-dev/2004-April/025421.html

Any ideas?  Thanks!

Bryan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: remote debugging: "Reply contains invalid hex digit 59"
       [not found] ` <1121783462.12629.10.camel@euskadi.packetvision>
@ 2005-07-19 14:35   ` Alex Gonzalez
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Gonzalez @ 2005-07-19 14:35 UTC (permalink / raw)
  To: linux-mips

I have seen something similar in our platform when the gdb on the host
computer was not compiled correctly.

For example it may be cross-compiled for mips n32 while the gdbserver is
compiled for o32, or similar incompatibilities.

I would double check that the toolchains used to compile the host gdb
and target gdbserver match.

Alex
> 
> On Tue, 2005-07-19 at 14:52, Bryan Althouse wrote:
> > Is anyone doing remote debugging for mips?  
> > 
> > I start the gdbserver on mips with:  
> >     gdbserver 192.168.2.39:2222 ./hello_loop
> > This produces:
> >     Process ./hello_loop created; pid = 158
> > 
> > On my PC, I type:
> >     ddd --debugger mips64-linux-gnu-gdb hello_loop
> >     (at gdb prompt) target remote 192.168.2.55:2222
> > 
> > This produces:
> >     (on gdb prompt) Couldn't establish connection to remote target
> >      Reply contains invalid hex digit 59
> >     (on mips) Remote debugging from host 192.168.2.39
> >      Readchar: Got EOF
> >      Remote side has terminated connection.  GDBserver will reopen the
> > connection. 
> > 
> > This problem is also described here:
> > http://mailman.uclinux.org/pipermail/uclinux-dev/2004-April/025421.html
> > 
> > Any ideas?  Thanks!
> > 
> > Bryan
> > 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: remote debugging: "Reply contains invalid hex digit 59"
  2005-07-19 13:52 remote debugging: "Reply contains invalid hex digit 59" Bryan Althouse
       [not found] ` <1121783462.12629.10.camel@euskadi.packetvision>
@ 2005-07-19 14:36 ` Alex Gonzalez
  2005-07-19 14:39 ` Daniel Jacobowitz
  2 siblings, 0 replies; 5+ messages in thread
From: Alex Gonzalez @ 2005-07-19 14:36 UTC (permalink / raw)
  To: 'Linux/MIPS Development'

I have seen something similar in our platform when the gdb on the host
computer was not compiled correctly.

For example it may be cross-compiled for mips n32 while the gdbserver is
compiled for o32, or similar incompatibilities.

I would double check that the toolchains used to compile the host gdb
and target gdbserver match.

Alex

On Tue, 2005-07-19 at 14:52, Bryan Althouse wrote:
> Is anyone doing remote debugging for mips?  
> 
> I start the gdbserver on mips with:  
>     gdbserver 192.168.2.39:2222 ./hello_loop
> This produces:
>     Process ./hello_loop created; pid = 158
> 
> On my PC, I type:
>     ddd --debugger mips64-linux-gnu-gdb hello_loop
>     (at gdb prompt) target remote 192.168.2.55:2222
> 
> This produces:
>     (on gdb prompt) Couldn't establish connection to remote target
>      Reply contains invalid hex digit 59
>     (on mips) Remote debugging from host 192.168.2.39
>      Readchar: Got EOF
>      Remote side has terminated connection.  GDBserver will reopen the
> connection. 
> 
> This problem is also described here:
> http://mailman.uclinux.org/pipermail/uclinux-dev/2004-April/025421.html
> 
> Any ideas?  Thanks!
> 
> Bryan
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: remote debugging: "Reply contains invalid hex digit 59"
  2005-07-19 13:52 remote debugging: "Reply contains invalid hex digit 59" Bryan Althouse
       [not found] ` <1121783462.12629.10.camel@euskadi.packetvision>
  2005-07-19 14:36 ` Alex Gonzalez
@ 2005-07-19 14:39 ` Daniel Jacobowitz
  2005-07-20  4:24   ` Maxim Osipov
  2 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2005-07-19 14:39 UTC (permalink / raw)
  To: Bryan Althouse; +Cc: 'Linux/MIPS Development'

On Tue, Jul 19, 2005 at 09:52:57AM -0400, Bryan Althouse wrote:
> 
> Is anyone doing remote debugging for mips?  
> 
> I start the gdbserver on mips with:  
>     gdbserver 192.168.2.39:2222 ./hello_loop
> This produces:
>     Process ./hello_loop created; pid = 158
> 
> On my PC, I type:
>     ddd --debugger mips64-linux-gnu-gdb hello_loop
>     (at gdb prompt) target remote 192.168.2.55:2222

Gdbserver doesn't have MIPS64 support merged.  Assuming you're using
MIPS64, as suggested by the above, then it won't work.

There are patches floating around, but I haven't had time...

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: remote debugging: "Reply contains invalid hex digit 59"
  2005-07-19 14:39 ` Daniel Jacobowitz
@ 2005-07-20  4:24   ` Maxim Osipov
  0 siblings, 0 replies; 5+ messages in thread
From: Maxim Osipov @ 2005-07-20  4:24 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: Bryan Althouse, Linux/MIPS Development

Daniel,

At the time when I was looking into this problem, I was unable to find
any patches. Could you please point me to one?

BR,
Maxim

On 7/19/05, Daniel Jacobowitz <dan@debian.org> wrote:
> On Tue, Jul 19, 2005 at 09:52:57AM -0400, Bryan Althouse wrote:
> >
> > Is anyone doing remote debugging for mips?
> >
> > I start the gdbserver on mips with:
> >     gdbserver 192.168.2.39:2222 ./hello_loop
> > This produces:
> >     Process ./hello_loop created; pid = 158
> >
> > On my PC, I type:
> >     ddd --debugger mips64-linux-gnu-gdb hello_loop
> >     (at gdb prompt) target remote 192.168.2.55:2222
> 
> Gdbserver doesn't have MIPS64 support merged.  Assuming you're using
> MIPS64, as suggested by the above, then it won't work.
> 
> There are patches floating around, but I haven't had time...
> 
> --
> Daniel Jacobowitz
> CodeSourcery, LLC
> 
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-20  4:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-19 13:52 remote debugging: "Reply contains invalid hex digit 59" Bryan Althouse
     [not found] ` <1121783462.12629.10.camel@euskadi.packetvision>
2005-07-19 14:35   ` Alex Gonzalez
2005-07-19 14:36 ` Alex Gonzalez
2005-07-19 14:39 ` Daniel Jacobowitz
2005-07-20  4:24   ` Maxim Osipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox