Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Robert Trask" <rtrask@broadcom.com>
To: gdb@sources.redhat.com
Subject: remote debug broken?
Date: Thu, 18 Mar 2004 22:14:00 -0000	[thread overview]
Message-ID: <02B1C56408AC9140BAE3395894D2DB3C0BA8B2@nt-sjca-0741.sj.broadcom.com> (raw)

Hello,
I want to use the remote debug feature on gdb wherein I have a
[superior] debugger running on a host system (Linux I386 pc) and an
[inferior] debugger running on the target (embedded Linux on MIPS). I
have tried this in gdb v5.3 and v6.0, the same behavior results.

I built the superior debugger in the usual way:
./configure        // build for native operation
make
then installed in my bin directory.

I built the inferior debugger in the gdbserver directory:
mkdir mipsobj
cd mipsobj
setenv CC <my mips cross gcc path>
../configure mips-linux-gnu
make

And then installed on my target...


I then start up the inferior debugger (gdbserver) on the target:

gdbserver host:tcp_port <prog-to-debug>

This obligingly waits for the superior debugger to contact it and start
matters.

I start gdb on the host in the usual way:

gdb <prog-to-debug>

then:
(gdb) target remote 10.18.99.108:6001
Remote debugging using 10.18.99.108:6001
Sending packet: $Hc-1#09...Ack
Packet received: OK
Sending packet: $qC#b4...Ack
Packet received: 
Sending packet: $qOffsets#4b...Ack
Packet received: 
Sending packet: $?#3f...Ack
Packet received: T0525:2aac0e50;1d:7fff7ee0;
Couldn't establish connection to remote target
Reply contains invalid hex digit 59


The hex digit 59 is a semicolon. Looking at the gdbserver sources I can
see it thinks (correctly) it's replying to a resume command and
expressly uses semicolons as field delimiters.

Am I missing an important step somewhere, doing something dumb,  or
both? Does remote debugging no longer work? Any ideas or suggestions
would be appreciated.

thanks!

/bob


             reply	other threads:[~2004-03-18 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-18 22:14 Robert Trask [this message]
2004-03-18 23:22 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=02B1C56408AC9140BAE3395894D2DB3C0BA8B2@nt-sjca-0741.sj.broadcom.com \
    --to=rtrask@broadcom.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox