diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-30 03:50:23 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-30 03:50:23 +0000 |
commit | 0c9935502ff2db25eabe36ee00ddc3d4c02cf3ca (patch) | |
tree | fca43cfd04e485184fbe25142ab8400300a74f08 /gdb/remote.c | |
parent | ee65efa82e5a96944523823984fa78de51c622e6 (diff) | |
download | gdb-0c9935502ff2db25eabe36ee00ddc3d4c02cf3ca.zip gdb-0c9935502ff2db25eabe36ee00ddc3d4c02cf3ca.tar.gz gdb-0c9935502ff2db25eabe36ee00ddc3d4c02cf3ca.tar.bz2 |
* remote.c (getpkt): If we get a timeout, actually retry rather
than just giving up the first time it happens.
* remote.c: Document sequence numbers.
(remote_store_registers): Change syntax of 'P' request so that it
never looks like a sequence number.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index a82f6bb..8cea2e0 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -25,7 +25,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ $ <data> # CSUM1 CSUM2 <data> must be ASCII alphanumeric and cannot include characters - '$' or '#' + '$' or '#'. If <data> starts with two characters followed by + ':', then the existing stubs interpret this as a sequence number. CSUM1 and CSUM2 are ascii hex representation of an 8-bit checksum of <data>, the most significant nibble is sent first. @@ -54,7 +55,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ reply OK for success ENN for an error - write reg Pn...:r... Write register n... with value r..., + write reg Pn...=r... Write register n... with value r..., which contains two hex digits for each byte in the register (target byte order). @@ -712,7 +713,7 @@ remote_store_registers (regno) /* Try storing a single register. */ char *regp; - sprintf (buf, "P%x:", regno); + sprintf (buf, "P%x=", regno); p = buf + strlen (buf); regp = ®isters[REGISTER_BYTE (regno)]; for (i = 0; i < REGISTER_RAW_SIZE (regno); ++i) @@ -1186,9 +1187,9 @@ getpkt (retbuf, forever) { if (forever) continue; - if (++retries >= MAX_RETRIES) - if (remote_debug) puts_filtered ("Timed out.\n"); - goto out; + if (remote_debug) + puts_filtered ("Timed out.\n"); + goto whole; } if (c == SERIAL_EOF) |