| 1020 | } |
| 1021 | |
| 1022 | void 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 | |
| 1042 | void DisassemblyView::setInstructions(u32 start, u32 end, u32 value) |
| 1043 | { |
nothing calls this directly
no test coverage detected