Skip to content
Snippets Groups Projects
Commit 7cfac4da authored by hjk's avatar hjk
Browse files

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

parent 55bcce46
No related branches found
No related tags found
No related merge requests found
...@@ -2510,7 +2510,12 @@ void GdbEngine::handleStackSelectThread(const GdbResultRecord &, const QVariant ...@@ -2510,7 +2510,12 @@ void GdbEngine::handleStackSelectThread(const GdbResultRecord &, const QVariant
void GdbEngine::handleStackListFrames(const GdbResultRecord &record, const QVariant &cookie) 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(); bool isFull = cookie.toBool();
QList<StackFrame> stackFrames; QList<StackFrame> stackFrames;
...@@ -2568,8 +2573,8 @@ void GdbEngine::handleStackListFrames(const GdbResultRecord &record, const QVari ...@@ -2568,8 +2573,8 @@ void GdbEngine::handleStackListFrames(const GdbResultRecord &record, const QVari
const StackFrame &frame = qq->stackHandler()->currentFrame(); const StackFrame &frame = qq->stackHandler()->currentFrame();
m_manager->gotoLocation(frame, true); m_manager->gotoLocation(frame, true);
} }
} else if (record.resultClass == GdbResultError) { } else {
qDebug() << "STACK FAILED: " << record.toString(); qDebug() << "LISTING STACK FAILED: " << record.toString();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment