X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fdebug.c;h=a464413b359c86db8c1c12ed1ce2cec2d66fd8fd;hb=30f0fdd42279a99893034a5d21b64439536c60aa;hp=1372627f3c248598c777a17cb2d3bf5d2cc9a6fc;hpb=cff531af94bd9c9c89ae162e80f48ddc26a4e504;p=picodrive.git diff --git a/cpu/debug.c b/cpu/debug.c index 1372627..a464413 100644 --- a/cpu/debug.c +++ b/cpu/debug.c @@ -88,6 +88,8 @@ static int pdb_net_send(struct pdb_cpu *cpu, unsigned int pc) packet.header.len = 4 + rl + 4*2; sh2->pdb_io_csum[0] = sh2->pdb_io_csum[1] = 0; } + else + memset(&packet, 0, sizeof(packet)); ret = send(pdb_net_sock, &packet, sizeof(packet.header) + packet.header.len, MSG_NOSIGNAL); if (ret != sizeof(packet.header) + packet.header.len) {