From JTC: Handle NAK from target stub.
authorAndrew Cagney <cagney@redhat.com>
Wed, 9 Feb 2000 02:51:55 +0000 (02:51 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 9 Feb 2000 02:51:55 +0000 (02:51 +0000)
gdb/ChangeLog
gdb/remote.c

index a94184460f5ea69f70ab2f0de4d7ad6c22ca6496..38e2ca36552cec43338de5fb65da2aac0d2b1617 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-05  J.T. Conklin  <jtc@redback.com>
+
+       * remote.c (putpkt_binary): Handle NAK from target stub.
+
 2000-02-08  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * configure.in: Remove the addition of sol-thread.c to the
index 674a03ea5c4735c7ee3362e7100332f48b63d4ab..a99de23198fb9cd33b6fdae16aa6b4b2057ab2d2 100644 (file)
@@ -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)