Debugger: Small Breakpoint cleanup

Reuse more code, change misleading names, remove useless documentation, add useful documentation
This commit is contained in:
Martino Fontana
2024-06-15 11:02:15 +02:00
parent dd67b77601
commit 9aeeea3762
8 changed files with 41 additions and 40 deletions

View File

@ -164,9 +164,8 @@ static void RemoveBreakpoint(BreakpointType type, u32 addr, u32 len)
if (type == BreakpointType::ExecuteHard || type == BreakpointType::ExecuteSoft)
{
auto& breakpoints = Core::System::GetInstance().GetPowerPC().GetBreakPoints();
while (breakpoints.IsAddressBreakPoint(addr))
if (breakpoints.Remove(addr))
{
breakpoints.Remove(addr);
INFO_LOG_FMT(GDB_STUB, "gdb: removed a breakpoint: {:08x} bytes at {:08x}", len, addr);
}
}