+2008-06-09 Doug Evans <dje@google.com>
+
+ * remote.c (remote_wait): Include beginning of malformed packet
+ in error output.
+
2008-06-09 Tom Tromey <tromey@redhat.com>
* completer.c (complete_line): Don't special-case
struct packet_reg *reg = packet_reg_from_pnum (rsa, pnum);
p = p1;
- if (*p++ != ':')
+ if (*p != ':')
error (_("Malformed packet(b) (missing colon): %s\n\
Packet: '%s'\n"),
p, buf);
+ ++p;
if (reg == NULL)
error (_("Remote sent bad register number %s: %s\n\
reg->regnum, regs);
}
- if (*p++ != ';')
+ if (*p != ';')
error (_("Remote register badly formatted: %s\nhere: %s"),
buf, p);
+ ++p;
}
}
/* fall through */