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

Method toggleBreakpoint

pcsx2-qt/Debugger/DisassemblyView.cpp:1022–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020}
1021
1022void DisassemblyView::toggleBreakpoint(u32 address)
1023{
1024 if (!cpu().isAlive())
1025 return;
1026
1027 const QPointer<DisassemblyView> view(this);
1028 Host::RunOnCPUThread([view, cpu = &cpu(), address] {
1029 if (!CBreakPoints::IsAddressBreakPoint(cpu->getCpuType(), address))
1030 CBreakPoints::AddBreakPoint(cpu->getCpuType(), address);
1031 else
1032 CBreakPoints::RemoveBreakPoint(cpu->getCpuType(), address);
1033
1034 QtHost::RunOnUIThread([view, cpu]() {
1035 BreakpointModel::getInstance(*cpu)->refreshData();
1036 if (view)
1037 view->update();
1038 });
1039 });
1040}
1041
1042void DisassemblyView::setInstructions(u32 start, u32 end, u32 value)
1043{

Callers

nothing calls this directly

Calls 4

isAliveMethod · 0.80
getCpuTypeMethod · 0.80
refreshDataMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected