* remote-mips.c (mips_send_packet): Don't print garbage character
authorIan Lance Taylor <ian@airs.com>
Fri, 11 Jun 1993 20:35:35 +0000 (20:35 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 11 Jun 1993 20:35:35 +0000 (20:35 +0000)
in debugging info.
(mips_request): Don't check that remote pid is 0, because
sometimes it isn't.

gdb/ChangeLog
gdb/remote-mips.c

index a78970ab0bc5dfda20b909a6cbb5b08654b4031d..0144a39f366c2e4dae2916db6f822974ec357a2e 100644 (file)
@@ -1,3 +1,10 @@
+Fri Jun 11 13:33:40 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * remote-mips.c (mips_send_packet): Don't print garbage character
+       in debugging info.
+       (mips_request): Don't check that remote pid is 0, because
+       sometimes it isn't.
+
 Fri Jun 11 10:17:41 1993  Jim Kingdon  (kingdon@cygnus.com)
 
        * stack.c (print_frame_info): Use catch_errors around print_frame_args.
index 2dc6dd22317eab0b9adf751216132ae7cf4fb422..3a668ad7e5493b5fdfc9cc9aa6ef430259754ac3 100644 (file)
@@ -574,7 +574,7 @@ mips_send_packet (s, get_ack)
              hdr[HDR_LENGTH] = '\0';
              trlr[TRLR_LENGTH] = '\0';
              printf_filtered ("Got ack %d \"%s%s\"\n",
-                              HDR_GET_SEQ (hdr), hdr, trlr);
+                              HDR_GET_SEQ (hdr), hdr + 1, trlr);
            }
 
          /* If this ack is for the current packet, we're done.  */
@@ -805,7 +805,6 @@ mips_request (cmd, addr, data, perr)
 
   if (sscanf (buff, "0x%x %c 0x%x 0x%x",
              &rpid, &rcmd, &rerrflg, &rresponse) != 4
-      || rpid != 0
       || (cmd != '\0' && rcmd != cmd))
     error ("Bad response from remote board");