aboutsummaryrefslogtreecommitdiff
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
commit1216fa2c08f748dbfb5c2680986190c5b7cc0281 (patch)
tree960704d5ad11097dbe0086f277927793fdc69fd0 /gdb/remote.c
parent25c1c39719d13daffa62fee7e8ad552009056f65 (diff)
downloadgdb-1216fa2c08f748dbfb5c2680986190c5b7cc0281.zip
gdb-1216fa2c08f748dbfb5c2680986190c5b7cc0281.tar.gz
gdb-1216fa2c08f748dbfb5c2680986190c5b7cc0281.tar.bz2
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 674a03e..a99de23 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)