This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Remote target behind console server
- From: "KONG, Gangfeng" <gkong at IPRG dot nokia dot com>
- To: Andrew Cagney <ac131313 at ges dot redhat dot com>
- Cc: Daniel Jacobowitz <drow at mvista dot com>, Quality Quorum <qqi at theworld dot com>, gdb at sources dot redhat dot com
- Date: Wed, 03 Jul 2002 18:22:39 -0700
- Subject: Re: Remote target behind console server
- References: <5.1.0.14.1.20020628183650.02b3c6b0@mailhost.iprg.nokia.com><3D1CE7D9.4050607@ges.redhat.com><5.1.0.14.1.20020628183650.02b3c6b0@mailhost.iprg.nokia.com><5.1.0.14.1.20020702200247.00a31960@mailhost.iprg.nokia.com>
At 11:40 AM 7/3/2002 -0400, Andrew Cagney wrote:
I start the gdb stub on the target by:
gdbstart -s 38400 -t /dev/ttyS0
and start the gdb on the development box by:
gdb vmlinux
gdb)
gdb) set remotebaud 38400
Just BTW, since it is TCP, setting the remote baud won't have any effect.
Suggest adding a:
(gdb) set debug remote 1
here. It will cause GDB to print all remote traffic and that will
hopefully make it easier to see why things are going wrong. You should be
able to compare it to a working direct connection.
Hi,
I attached the output from my development box after I 'set debug remote 1'.
It looks like it didn't get reponse from target box. I have no idea......
--------------------------------------------------
(gdb) set debug remote 1
(gdb) target remote 4.22.79.12:2001
Remote debugging using 4.22.79.12:2001
Sending packet: $Hc-1#09...putpkt: Junk: {{}?s!t
Packet instead of Ack, ignoring it
Timeout in mid-packet, retrying
Sending packet: $Hc-1#09...putpkt: Junk: s!u
H 1!st
|
Sending packet: $Hc-1#09...putpkt: Junk: s!u
H 1!st
|
Sending packet: $Hc-1#09...putpkt: Junk: s!u
H 1!su
x
Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $qC#b4...putpkt: Junk: s!uD ss_}!u
H 1!st
Sending packet: $qC#b4...putpkt: Junk: s v1!ubs}
Sending packet: $qC#b4...putpkt: Junk: s!vYmubs}
Sending packet: $qC#b4...putpkt: Junk: s!ub 1!sv
Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $qOffsets#4b...putpkt: Junk: s!u! ssW}!u
b 1!u
b 1!su
Sending packet: $qOffsets#4b...putpkt: Junk: s!ub 1!u
Sending packet: $qOffsets#4b...putpkt: Junk: s*vb 1!u
Sending packet: $qOffsets#4b...putpkt: Junk: s!ub 1!u
Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to offset query, timeout
(gdb)