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: minimal stub? (GDB Remote Serial Protocol)


Hi all,

I am planning on using GDB to debug a remote processor running a debug stub.
It is quite concerning to me that the remote protocol document is
out-of-date.  Is it that easy to figure out what the protocol is by
experimentation?  For example if the GDB host sends a stream of commands to
the remote processor and it mis-interprets the first one, is the host not
going to just quit on that?  That would make the experimentation process
pretty long!

I am puzzled:
1) are there no people out there who have this protocol figured out?  I
would appreciate at least a starting point!
2) are all the commands in the remote protocol document out of date or just
some of them?

Any help would be gratefully received.

-Vijay Kamarshi
PS:  I heard that one way of figuring out this remote protocol is to peer
deeply into gdbserver, but people have warned me that it is a pretty hairy
piece of code.

-----Original Message-----
From: gdb-owner@sources.redhat.com [mailto:gdb-owner@sources.redhat.com]On
Behalf Of Andrew Cagney
Sent: Friday, January 23, 2004 12:50 PM
To: Németh Márton
Cc: gdb@sources.redhat.com
Subject: Re: minimal stub? (GDB Remote Serial Protocol)


See: single step `s' packet isn't a requirement
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&databas
e=gdb&pr=1068
for one error.

> Where can I have up to date informations? (e.g. which file in the
>> gdb source tree)

Daniel writes:
> Nowhere; you'll just have to experiment.  If you would like to report a
> minimal set I'll update the documentation.  You'll need to start with
> '?' definitely.

Looks like it (although it is only used once during an entire target
session) :-/

Andrew





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