This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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]

Re: Remote target behind console server


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)


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