Commit 7cfac4da authored by hjk's avatar hjk
Browse files

debugger: work around listing of short stacks for old gdbs (apple + symbian)

parent 55bcce46
......@@ -2510,7 +2510,12 @@ void GdbEngine::handleStackSelectThread(const GdbResultRecord &, const QVariant
void GdbEngine::handleStackListFrames(const GdbResultRecord &record, const QVariant &cookie)
{
if (record.resultClass == GdbResultDone) {
#if defined(Q_OS_MAC)
bool handleIt = true;
#else
bool handleIt = record.resultClass == GdbResultDone;
#endif
if (handleIt) {
bool isFull = cookie.toBool();
QList<StackFrame> stackFrames;
......@@ -2568,8 +2573,8 @@ void GdbEngine::handleStackListFrames(const GdbResultRecord &record, const QVari
const StackFrame &frame = qq->stackHandler()->currentFrame();
m_manager->gotoLocation(frame, true);
}
} else if (record.resultClass == GdbResultError) {
qDebug() << "STACK FAILED: " << record.toString();
} else {
qDebug() << "LISTING STACK FAILED: " << record.toString();
}
}
......
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