Fix an incorrect sizeof in a memset in GDBStub.cpp

This commit is contained in:
Lioncash 2013-09-04 09:01:44 -04:00
parent 10eb9f09b4
commit 30da36dd1e
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ static void gdb_bp_remove(u32 type, u32 addr, u32 len)
if (p != NULL) {
DEBUG_LOG(GDB_STUB, "gdb: removed a breakpoint: %08x bytes at %08x\n", len, addr);
p->active = 0;
memset(p, 0, sizeof p);
memset(p, 0, sizeof(gdb_bp_t));
}
} while (p != NULL);
}