Expand conditional breakpoints to memory breakpoints

This commit is contained in:
TryTwo
2022-09-02 02:57:30 -07:00
parent 6abcaadd5a
commit a17fbe7c65
9 changed files with 88 additions and 49 deletions

View File

@ -865,7 +865,7 @@ static bool AddBreakpoint(BreakpointType type, u32 addr, u32 len)
new_memcheck.break_on_hit = true;
new_memcheck.log_on_hit = false;
new_memcheck.is_enabled = true;
PowerPC::memchecks.Add(new_memcheck);
PowerPC::memchecks.Add(std::move(new_memcheck));
INFO_LOG_FMT(GDB_STUB, "gdb: added {} memcheck: {:08x} bytes at {:08x}", static_cast<int>(type),
len, addr);
}