MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / AddMemCheck

Method AddMemCheck

pcsx2/DebugTools/Breakpoints.cpp:298–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void CBreakPoints::AddMemCheck(BreakPointCpu cpu, u32 start, u32 end, MemCheckCondition cond, MemCheckResult result)
299{
300 // This will ruin any pending memchecks.
301 cleanupMemChecks_.clear();
302
303 const size_t mc = FindMemCheck(cpu, start, end);
304 if (mc == INVALID_MEMCHECK)
305 {
306 MemCheck check;
307 check.start = start;
308 check.end = end;
309 check.memCond = cond;
310 check.result = result;
311 check.cpu = cpu;
312
313 memChecks_.push_back(check);
314 Update(cpu);
315 }
316 else
317 {
318 memChecks_[mc].memCond = (MemCheckCondition)(memChecks_[mc].memCond | cond);
319 memChecks_[mc].result = (MemCheckResult)(memChecks_[mc].result | result);
320 Update(cpu);
321 }
322}
323
324void CBreakPoints::RemoveMemCheck(BreakPointCpu cpu, u32 start, u32 end)
325{

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected