Debugger: Fix step out

This commit is contained in:
Ty Lamontagne 2023-01-14 02:18:42 -05:00 committed by lightningterror
parent 577e15a949
commit 2ef2f5db1d
2 changed files with 2 additions and 5 deletions

View File

@ -160,11 +160,11 @@ void CpuWidget::onStepOut()
// Allow the cpu to skip this pc if it is a breakpoint
CBreakPoints::SetSkipFirst(m_cpu.getCpuType(), m_cpu.getPC());
if (m_stacklistObjects.size() < 2)
if (m_stackModel.rowCount() < 2)
return;
Host::RunOnCPUThread([&] {
CBreakPoints::AddBreakPoint(m_cpu.getCpuType(), m_stacklistObjects.at(1).pc, true);
CBreakPoints::AddBreakPoint(m_cpu.getCpuType(), m_stackModel.data(m_stackModel.index(1, StackModel::PC), Qt::UserRole).toUInt(), true);
m_cpu.resumeCpu();
});

View File

@ -105,8 +105,5 @@ private:
ThreadModel m_threadModel;
StackModel m_stackModel;
std::vector<EEThread> m_threadlistObjects;
std::vector<StackFrame> m_stacklistObjects;
bool m_demangleFunctions = true;
};