Fix an incorrect sizeof in a memset in GDBStub.cpp
This commit is contained in:
parent
10eb9f09b4
commit
30da36dd1e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue