Debugger: Select topmost frame with usable data also with LLDB

Task-number: QTCREATORBUG-11597
Change-Id: I5d95c9172e90b82f5671427283cf46e924456c4c
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-03-06 12:04:47 +01:00
parent fed6b8bdd0
commit 8931a14afe
5 changed files with 87 additions and 34 deletions

View File

@@ -219,6 +219,16 @@ void StackHandler::prependFrames(const StackFrames &frames)
emit stackChanged();
}
int StackHandler::firstUsableIndex() const
{
if (!debuggerCore()->boolSetting(OperateByInstruction)) {
for (int i = 0, n = m_stackFrames.size(); i != n; ++i)
if (m_stackFrames.at(i).isUsable())
return i;
}
return 0;
}
const StackFrames &StackHandler::frames() const
{
return m_stackFrames;