Debugger: Fix step out

This commit is contained in:
Ty Lamontagne authored and lightningterror committed 2023-01-14 12:51:14 +01:00
1 parent 577e15a949
commit 2ef2f5db1d
2 files changed
+2 -5

No files matched your search

+2 -2
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();
});
-3
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;
};