Home | History | Annotate | Download | only in m_gdbserver

Lines Matching refs:csum

765    If there are any, update *CSUM and *P.  Otherwise, output the
769 int try_rle (char *buf, int remaining, unsigned char *csum, char **p)
774 *csum += buf[0];
800 *csum += '*';
802 *csum += n + 29;
815 unsigned char csum = 0;
832 i += try_rle (buf + i, cnt - i, &csum, &p);
835 *p++ = tohex ((csum >> 4) & 0xf);
836 *p++ = tohex (csum & 0xf);
1010 unsigned char csum, c1, c2;
1014 csum = 0;
1033 csum += c;
1040 if (csum == (c1 << 4) + c2)
1043 dlog (0, "Bad checksum, sentsum=0x%x, csum=0x%x, buf=%s\n",
1044 (unsigned)(c1 << 4) + c2, (unsigned)csum, buf);