summaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-02-09 02:51:55 +0000
committerAndrew Cagney <cagney@redhat.com>2000-02-09 02:51:55 +0000
commit3c5429b8d9425d7ec8dd4a8ef552a4a62473d2e8 (patch)
treee75dfa3e0f5509274ea8564317f9ec382220ec92 /gdb/remote.c
parent47a4a1424be4137fd7f0f502ddd4d58f32b43aaa (diff)
downloadgdb-3c5429b8d9425d7ec8dd4a8ef552a4a62473d2e8.tar.gz
From JTC: Handle NAK from target stub.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 674a03ea5c4..a99de23198f 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3730,6 +3730,7 @@ putpkt_binary (buf, cnt)
switch (ch)
{
case '+':
+ case '-':
case SERIAL_TIMEOUT:
case '$':
if (started_error_output)
@@ -3746,6 +3747,9 @@ putpkt_binary (buf, cnt)
if (remote_debug)
fprintf_unfiltered (gdb_stdlog, "Ack\n");
return 1;
+ case '-':
+ if (remote_debug)
+ fprintf_unfiltered (gdb_stdlog, "Nak\n");
case SERIAL_TIMEOUT:
tcount++;
if (tcount > 3)