X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fdebug.c;h=a464413b359c86db8c1c12ed1ce2cec2d66fd8fd;hb=9db6a54485501b56b0f2f5db4d093c38fe495bda;hp=4fffcf671c881136e97cddd616fcf56d1176c53f;hpb=f3a57b2d6c6a32dc09a6efd4fbef31eb876263b2;p=picodrive.git diff --git a/cpu/debug.c b/cpu/debug.c index 4fffcf6..a464413 100644 --- a/cpu/debug.c +++ b/cpu/debug.c @@ -1,6 +1,9 @@ /* - * vim:shiftwidth=2:expandtab * PDB, the PicoDrive debugger + * (C) notaz, 2010 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. */ #define _GNU_SOURCE #include @@ -85,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) { @@ -407,3 +412,4 @@ void pdb_cleanup(void) pdb_cpu_count = 0; } +// vim:shiftwidth=2:expandtab