forked from qt-creator/qt-creator
		
	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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user