Commit 6d6ed26e authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

frames with debug info but without source cannot be navigated to

... - in the source view, that is. so grey them out in the stack view.

Reviewed-By: hjk
parent 9d20a2ab
......@@ -2312,8 +2312,7 @@ void GdbEngine::handleStackListFrames(const GdbResponse &response)
#endif
// Initialize top frame to the first valid frame.
// FIXME: Check for QFile(frame.fullname).isReadable()?
const bool isValid = !frame.file.isEmpty() && !frame.function.isEmpty();
const bool isValid = frame.isUsable() && !frame.function.isEmpty();
if (isValid && targetFrame == -1)
targetFrame = i;
}
......
......@@ -203,7 +203,7 @@ Qt::ItemFlags StackHandler::flags(const QModelIndex &index) const
if (index.row() == m_stackFrames.size())
return QAbstractTableModel::flags(index);
const StackFrame &frame = m_stackFrames.at(index.row());
const bool isValid = (!frame.file.isEmpty() && !frame.function.isEmpty())
const bool isValid = (frame.isUsable() && !frame.function.isEmpty())
|| theDebuggerBoolSetting(OperateByInstruction);
return isValid ? QAbstractTableModel::flags(index) : Qt::ItemFlags(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment