From 3c5429b8d9425d7ec8dd4a8ef552a4a62473d2e8 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 9 Feb 2000 02:51:55 +0000 Subject: [PATCH] From JTC: Handle NAK from target stub. --- gdb/ChangeLog | 4 ++++ gdb/remote.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a94184460f..38e2ca3655 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2000-02-05 J.T. Conklin + + * remote.c (putpkt_binary): Handle NAK from target stub. + 2000-02-08 Elena Zannoni * configure.in: Remove the addition of sol-thread.c to the diff --git a/gdb/remote.c b/gdb/remote.c index 674a03ea5c..a99de23198 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) -- 2.11.0