mirror of https://github.com/PCSX2/pcsx2.git
Debugger Breakpoints: Allow toggling from list / dialog.
This commit is contained in:
parent
a9a3342519
commit
ec5a91b89a
|
@ -197,8 +197,10 @@ void BreakpointDialog::accept()
|
|||
}
|
||||
else
|
||||
{
|
||||
Host::RunOnCPUThread([this, address] { CBreakPoints::ChangeBreakPointRemoveCond(m_cpu->getCpuType(), address); }, true);
|
||||
Host::RunOnCPUThread([this, address] { CBreakPoints::ChangeBreakPointRemoveCond(m_cpu->getCpuType(), address); });
|
||||
}
|
||||
|
||||
Host::RunOnCPUThread([this, address] { CBreakPoints::ChangeBreakPoint(m_cpu->getCpuType(), address, m_ui.chkEnable->isChecked()); });
|
||||
m_bp->addr = address;
|
||||
}
|
||||
|
||||
|
|
|
@ -234,6 +234,8 @@ void CpuWidget::onVMPaused()
|
|||
|
||||
void CpuWidget::updateBreakpoints()
|
||||
{
|
||||
m_ui.breakpointList->blockSignals(true);
|
||||
|
||||
m_ui.breakpointList->setRowCount(0);
|
||||
m_bplistObjects.clear();
|
||||
|
||||
|
@ -355,6 +357,8 @@ void CpuWidget::updateBreakpoints()
|
|||
|
||||
iter++;
|
||||
}
|
||||
|
||||
m_ui.breakpointList->blockSignals(false);
|
||||
}
|
||||
|
||||
void CpuWidget::fixBPListColumnSize()
|
||||
|
@ -468,6 +472,21 @@ void CpuWidget::onBPListItemChange(QTableWidgetItem* item)
|
|||
updateBreakpoints();
|
||||
}
|
||||
}
|
||||
else if (item->column() == 6)
|
||||
{
|
||||
auto bpmc = m_bplistObjects.at(item->row());
|
||||
|
||||
Host::RunOnCPUThread([this, bpmc, checked = item->checkState()] {
|
||||
if (bpmc.bp)
|
||||
{
|
||||
CBreakPoints::ChangeBreakPoint(m_cpu.getCpuType(), bpmc.bp->addr, checked);
|
||||
}
|
||||
else
|
||||
{
|
||||
CBreakPoints::ChangeMemCheck(m_cpu.getCpuType(), bpmc.mc->start, bpmc.mc->end, bpmc.mc->cond, MemCheckResult(bpmc.mc->result ^ MEMCHECK_BREAK));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void CpuWidget::contextBPListCopy()
|
||||
|
|
Loading…
Reference in New Issue