From 7cfac4da3ffe84f6e78da47b3fdc67ad880c16ff Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Tue, 15 Sep 2009 15:37:12 +0200 Subject: [PATCH] debugger: work around listing of short stacks for old gdbs (apple + symbian) --- src/plugins/debugger/gdb/gdbengine.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index cb8320a8fed..1e80cfa632c 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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(); } } -- GitLab