mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Fix step out
This commit is contained in:
parent
577e15a949
commit
2ef2f5db1d
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue